1 10 11 package org.mule.management.mbeans; 12 13 import org.mule.MuleManager; 14 import org.mule.config.MuleConfiguration; 15 16 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 getWorkingDirectory() 68 { 69 return muleConfiguration.getWorkingDirectory(); 70 } 71 72 public void setWorkingDirectory(String workingDirectory) 73 { 74 muleConfiguration.setWorkingDirectory(workingDirectory); 75 } 76 77 public String [] getConfigResources() 78 { 79 return muleConfiguration.getConfigResources(); 80 } 81 82 public String getServerUrl() 83 { 84 return muleConfiguration.getServerUrl(); 85 } 86 87 public void setServerUrl(String 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 getEncoding() 123 { 124 return muleConfiguration.getEncoding(); 125 } 126 127 public void setEncoding(String 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 |