org.mule.config
Class MuleConfiguration

java.lang.Object
  extended by org.mule.config.MuleConfiguration

public class MuleConfiguration
extends Object

MuleConfiguration holds the runtime configuration specific to the MuleManager. Once the MuleManager has been initialised this class is immutable.


Field Summary
static String DEFAULT_ENCODING
           
static int DEFAULT_MAX_OUTSTANDING_MESSAGES
          Default value for MAX_OUTSTANDING_MESSAGES_PROPERTY
static String DEFAULT_OS_ENCODING
          Default encoding used in OS running Mule
static String DEFAULT_QUEUE_STORE
          The default queueStore directory for persistence
static String DEFAULT_SERVER_URL
          The default serverUrl used to receive incoming requests from clients
static boolean DEFAULT_SYNCHRONOUS
          Default value for SYNCHRONOUS_PROPERTY
static String DEFAULT_SYSTEM_MODEL_TYPE
           
static int DEFAULT_TIMEOUT
           
static int DEFAULT_TRANSACTION_TIMEOUT
           
static String DEFAULT_WORKING_DIRECTORY
          Where Mule stores any runtime files to disk
protected  Log logger
          logger used by this class
static String SYNCHRONOUS_PROPERTY
          Specifies whether mule should process messages sysnchonously, i.e.
static String USE_MANAGER_PROPERTIES
          Specifies that the transformer properties should be obtained from the Mule Manager properties
 
Constructor Summary
MuleConfiguration()
           
 
Method Summary
 String getBuildDate()
          Deprecated. use MuleManifest.getBuildNumber() instead
 ThreadingProfile getComponentThreadingProfile()
           
 String[] getConfigResources()
           
 ConnectionStrategy getConnectionStrategy()
          Returns a clone of the default Connection strategy.
 ThreadingProfile getDefaultThreadingProfile()
           
 String getEncoding()
           
 String getLogDirectory()
           
 Manifest getManifest()
          Deprecated. use MuleManifest instead
protected  String getManifestProperty(String name)
          Deprecated. use MuleManifest instead
 ThreadingProfile getMessageDispatcherThreadingProfile()
           
 ThreadingProfile getMessageReceiverThreadingProfile()
           
 String getModel()
           
 String getModelType()
           
 String getMuleHomeDirectory()
           
 String getOSEncoding()
           
 QueuePersistenceStrategy getPersistenceStrategy()
           
 PoolingProfile getPoolingProfile()
           
 String getProductDescription()
          Deprecated. use MuleManifest instead
 String getProductLicenseInfo()
          Deprecated. use MuleManifest instead
 String getProductMoreInfo()
          Deprecated. use MuleManifest instead
 String getProductName()
          Deprecated. use MuleManifest instead
 String getProductSupport()
          Deprecated. use MuleManifest instead
 String getProductUrl()
          Deprecated. use MuleManifest instead
 String getProductVersion()
          Deprecated. use MuleManifest instead
 QueueProfile getQueueProfile()
           
 String getServerUrl()
           
 int getSynchronousEventTimeout()
           
 String getSystemModelType()
           
 int getTransactionTimeout()
           
 String getVendorName()
          Deprecated. use MuleManifest instead
 String getVendorUrl()
          Deprecated. use MuleManifest instead
 String getWorkingDirectory()
           
 javax.resource.spi.work.WorkListener getWorkListener()
           
 boolean isClientMode()
           
 boolean isEmbedded()
           
 boolean isEnableMessageEvents()
           
 boolean isRecoverableMode()
           
 boolean isRemoteSync()
           
 boolean isSynchronous()
           
 void setClientMode(boolean clientMode)
           
 void setComponentThreadingProfile(ThreadingProfile componentPoolThreadingProfile)
           
 void setConfigResources(String[] configResources)
           
 void setConnectionStrategy(ConnectionStrategy connectionStrategy)
          Sets the connection strategy used by all connectors managed in this Mule instance if the connector has no connection strategy specifically set on it.
 void setDefaultThreadingProfile(ThreadingProfile defaultThreadingProfile)
           
 void setEmbedded(boolean embedded)
           
 void setEnableMessageEvents(boolean enableMessageEvents)
           
 void setEncoding(String encoding)
           
 void setMessageDispatcherThreadingProfile(ThreadingProfile messageDispatcherThreadingProfile)
           
 void setMessageReceiverThreadingProfile(ThreadingProfile messageReceiverThreadingProfile)
           
 void setModel(String model)
           
 void setModelType(String modelType)
           
 void setOSEncoding(String osEncoding)
           
 void setPersistenceStrategy(QueuePersistenceStrategy persistenceStrategy)
           
 void setPoolingProfile(PoolingProfile poolingProfile)
           
 void setQueueProfile(QueueProfile queueProfile)
           
 void setRecoverableMode(boolean recoverableMode)
           
 void setRemoteSync(boolean remoteSync)
           
 void setServerUrl(String serverUrl)
           
 void setSynchronous(boolean synchronous)
           
 void setSynchronousEventTimeout(int synchronousEventTimeout)
           
 void setSystemModelType(String systemModelType)
           
 void setTransactionTimeout(int transactionTimeout)
           
 void setWorkingDirectory(String workingDirectory)
           
 void setWorkListener(javax.resource.spi.work.WorkListener workListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
logger used by this class


DEFAULT_SERVER_URL

public static final String DEFAULT_SERVER_URL
The default serverUrl used to receive incoming requests from clients

See Also:
Constant Field Values

USE_MANAGER_PROPERTIES

public static final String USE_MANAGER_PROPERTIES
Specifies that the transformer properties should be obtained from the Mule Manager properties

See Also:
Constant Field Values

SYNCHRONOUS_PROPERTY

public static final String SYNCHRONOUS_PROPERTY
Specifies whether mule should process messages sysnchonously, i.e. that a mule-model can only processone message at a time, or asynchonously. The default value is 'false'.

See Also:
Constant Field Values

DEFAULT_ENCODING

public static final String DEFAULT_ENCODING
See Also:
Constant Field Values

DEFAULT_OS_ENCODING

public static final String DEFAULT_OS_ENCODING
Default encoding used in OS running Mule


DEFAULT_SYNCHRONOUS

public static final boolean DEFAULT_SYNCHRONOUS
Default value for SYNCHRONOUS_PROPERTY

See Also:
Constant Field Values

DEFAULT_MAX_OUTSTANDING_MESSAGES

public static final int DEFAULT_MAX_OUTSTANDING_MESSAGES
Default value for MAX_OUTSTANDING_MESSAGES_PROPERTY

See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values

DEFAULT_TRANSACTION_TIMEOUT

public static final int DEFAULT_TRANSACTION_TIMEOUT
See Also:
Constant Field Values

DEFAULT_SYSTEM_MODEL_TYPE

public static final String DEFAULT_SYSTEM_MODEL_TYPE
See Also:
Constant Field Values

DEFAULT_WORKING_DIRECTORY

public static final String DEFAULT_WORKING_DIRECTORY
Where Mule stores any runtime files to disk

See Also:
Constant Field Values

DEFAULT_QUEUE_STORE

public static final String DEFAULT_QUEUE_STORE
The default queueStore directory for persistence

See Also:
Constant Field Values
Constructor Detail

MuleConfiguration

public MuleConfiguration()
Method Detail

isSynchronous

public boolean isSynchronous()
Returns:
true if the model is running synchronously or false otherwise

setSynchronous

public void setSynchronous(boolean synchronous)

getModel

public String getModel()

setModel

public void setModel(String model)

getMessageDispatcherThreadingProfile

public ThreadingProfile getMessageDispatcherThreadingProfile()

setMessageDispatcherThreadingProfile

public void setMessageDispatcherThreadingProfile(ThreadingProfile messageDispatcherThreadingProfile)

getMessageReceiverThreadingProfile

public ThreadingProfile getMessageReceiverThreadingProfile()

setMessageReceiverThreadingProfile

public void setMessageReceiverThreadingProfile(ThreadingProfile messageReceiverThreadingProfile)

getComponentThreadingProfile

public ThreadingProfile getComponentThreadingProfile()

setComponentThreadingProfile

public void setComponentThreadingProfile(ThreadingProfile componentPoolThreadingProfile)

getDefaultThreadingProfile

public ThreadingProfile getDefaultThreadingProfile()

setDefaultThreadingProfile

public void setDefaultThreadingProfile(ThreadingProfile defaultThreadingProfile)

getPoolingProfile

public PoolingProfile getPoolingProfile()

setPoolingProfile

public void setPoolingProfile(PoolingProfile poolingProfile)

getSynchronousEventTimeout

public int getSynchronousEventTimeout()

setSynchronousEventTimeout

public void setSynchronousEventTimeout(int synchronousEventTimeout)

isRemoteSync

public boolean isRemoteSync()

setRemoteSync

public void setRemoteSync(boolean remoteSync)

getQueueProfile

public QueueProfile getQueueProfile()

setQueueProfile

public void setQueueProfile(QueueProfile queueProfile)

isRecoverableMode

public boolean isRecoverableMode()

setRecoverableMode

public void setRecoverableMode(boolean recoverableMode)

getWorkingDirectory

public String getWorkingDirectory()

getMuleHomeDirectory

public String getMuleHomeDirectory()

getLogDirectory

public String getLogDirectory()

setWorkingDirectory

public void setWorkingDirectory(String workingDirectory)

getConfigResources

public String[] getConfigResources()

setConfigResources

public void setConfigResources(String[] configResources)

getServerUrl

public String getServerUrl()

setServerUrl

public void setServerUrl(String serverUrl)

getProductVersion

public String getProductVersion()
Deprecated. use MuleManifest instead


getVendorName

public String getVendorName()
Deprecated. use MuleManifest instead


getVendorUrl

public String getVendorUrl()
Deprecated. use MuleManifest instead


getProductUrl

public String getProductUrl()
Deprecated. use MuleManifest instead


getProductName

public String getProductName()
Deprecated. use MuleManifest instead


getProductMoreInfo

public String getProductMoreInfo()
Deprecated. use MuleManifest instead


getProductSupport

public String getProductSupport()
Deprecated. use MuleManifest instead


getProductLicenseInfo

public String getProductLicenseInfo()
Deprecated. use MuleManifest instead


getProductDescription

public String getProductDescription()
Deprecated. use MuleManifest instead


getBuildDate

public String getBuildDate()
Deprecated. use MuleManifest.getBuildNumber() instead


getManifest

public Manifest getManifest()
Deprecated. use MuleManifest instead


getManifestProperty

protected String getManifestProperty(String name)
Deprecated. use MuleManifest instead


getTransactionTimeout

public int getTransactionTimeout()

setTransactionTimeout

public void setTransactionTimeout(int transactionTimeout)

isClientMode

public boolean isClientMode()

setClientMode

public void setClientMode(boolean clientMode)

getPersistenceStrategy

public QueuePersistenceStrategy getPersistenceStrategy()

setPersistenceStrategy

public void setPersistenceStrategy(QueuePersistenceStrategy persistenceStrategy)

getConnectionStrategy

public ConnectionStrategy getConnectionStrategy()
Returns a clone of the default Connection strategy. The clone ensures that the connection strategy can be manipulated without affecting other connectors using the same strategy

Returns:
a clone of the default Connection strategy

setConnectionStrategy

public void setConnectionStrategy(ConnectionStrategy connectionStrategy)
Sets the connection strategy used by all connectors managed in this Mule instance if the connector has no connection strategy specifically set on it.

Parameters:
connectionStrategy - the default strategy to use

isEmbedded

public boolean isEmbedded()

setEmbedded

public void setEmbedded(boolean embedded)

getModelType

public String getModelType()

setModelType

public void setModelType(String modelType)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getOSEncoding

public String getOSEncoding()

setOSEncoding

public void setOSEncoding(String osEncoding)

isEnableMessageEvents

public boolean isEnableMessageEvents()

setEnableMessageEvents

public void setEnableMessageEvents(boolean enableMessageEvents)

getWorkListener

public javax.resource.spi.work.WorkListener getWorkListener()

setWorkListener

public void setWorkListener(javax.resource.spi.work.WorkListener workListener)

getSystemModelType

public String getSystemModelType()

setSystemModelType

public void setSystemModelType(String systemModelType)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.