KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > management > mbeans > MuleConfigurationService


1 /*
2  * $Id: MuleConfigurationService.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.management.mbeans;
12
13 import org.mule.MuleManager;
14 import org.mule.config.MuleConfiguration;
15
16 /**
17  * <code>MuleConfigurationService</code> exposes the MuleConfiguration settings as
18  * a management service
19  *
20  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
21  * @version $Revision: 3798 $
22  */

23 public class MuleConfigurationService implements MuleConfigurationServiceMBean
24 {
25     private final MuleConfiguration muleConfiguration = MuleManager.getConfiguration();
26
27     public boolean isSynchronous()
28     {
29         return muleConfiguration.isSynchronous();
30     }
31
32     public void setSynchronous(boolean synchronous)
33     {
34         muleConfiguration.setSynchronous(synchronous);
35     }
36
37     public int getSynchronousEventTimeout()
38     {
39         return muleConfiguration.getSynchronousEventTimeout();
40     }
41
42     public void setSynchronousEventTimeout(int synchronousEventTimeout)
43     {
44         muleConfiguration.setSynchronousEventTimeout(synchronousEventTimeout);
45     }
46
47     public boolean isRemoteSync()
48     {
49         return muleConfiguration.isRemoteSync();
50     }
51
52     public void setRemoteSync(boolean remoteSync)
53     {
54         muleConfiguration.setRemoteSync(remoteSync);
55     }
56
57     public boolean isRecoverableMode()
58     {
59         return muleConfiguration.isRecoverableMode();
60     }
61
62     public void setRecoverableMode(boolean recoverableMode)
63     {
64         muleConfiguration.setRecoverableMode(recoverableMode);
65     }
66
67     public String JavaDoc getWorkingDirectory()
68     {
69         return muleConfiguration.getWorkingDirectory();
70     }
71
72     public void setWorkingDirectory(String JavaDoc workingDirectory)
73     {
74         muleConfiguration.setWorkingDirectory(workingDirectory);
75     }
76
77     public String JavaDoc[] getConfigResources()
78     {
79         return muleConfiguration.getConfigResources();
80     }
81
82     public String JavaDoc getServerUrl()
83     {
84         return muleConfiguration.getServerUrl();
85     }
86
87     public void setServerUrl(String JavaDoc serverUrl)
88     {
89         muleConfiguration.setServerUrl(serverUrl);
90     }
91
92     public int getTransactionTimeout()
93     {
94         return muleConfiguration.getTransactionTimeout();
95     }
96
97     public void setTransactionTimeout(int transactionTimeout)
98     {
99         muleConfiguration.setTransactionTimeout(transactionTimeout);
100     }
101
102     public boolean isClientMode()
103     {
104         return muleConfiguration.isClientMode();
105     }
106
107     public void setClientMode(boolean clientMode)
108     {
109         muleConfiguration.setClientMode(clientMode);
110     }
111
112     public boolean isEmbedded()
113     {
114         return muleConfiguration.isEmbedded();
115     }
116
117     public void setEmbedded(boolean embedded)
118     {
119         muleConfiguration.setEmbedded(embedded);
120     }
121
122     public String JavaDoc getEncoding()
123     {
124         return muleConfiguration.getEncoding();
125     }
126
127     public void setEncoding(String JavaDoc encoding)
128     {
129         muleConfiguration.setEncoding(encoding);
130     }
131
132     public boolean isEnableMessageEvents()
133     {
134         return muleConfiguration.isEnableMessageEvents();
135     }
136
137     public void setEnableMessageEvents(boolean enableMessageEvents)
138     {
139         muleConfiguration.setEnableMessageEvents(enableMessageEvents);
140     }
141 }
142
Popular Tags