|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.MuleServer
public class MuleServer
MuleServer
is a simple application that represents a local Mule
Server daemon. It is initialised with a mule-config.xml file.
Field Summary | |
---|---|
protected static String |
CLASSNAME_DEFAULT_CONFIG_BUILDER
Don't use a class object so the core doesn't depend on mule-module-builders. |
protected static String |
CLASSNAME_SPRING_CONFIG_BUILDER
Required to support the '-config spring' shortcut. |
static String[][] |
CLI_OPTIONS
|
static String |
DEFAULT_CONFIGURATION
|
Constructor Summary | |
---|---|
MuleServer()
|
|
MuleServer(String configResources)
|
Method Summary | |
---|---|
static String |
getConfigBuilderClassName()
Returns the class name of the configuration builder used to create this MuleServer. |
String |
getConfigurationResources()
Getter for property messengerURL. |
static String |
getStartupPropertiesFile()
|
protected void |
initialize()
Initializes this daemon. |
static void |
main(String[] args)
Application entry point. |
void |
run()
Overloaded the [main] thread run method. |
static void |
setConfigBuilderClassName(String builderClassName)
Sets the configuration builder to use for this server. |
void |
setConfigurationResources(String configurationResources)
Setter for property messengerURL. |
static void |
setStartupPropertiesFile(String startupPropertiesFile)
|
void |
shutdown()
shutdown the server. |
void |
shutdown(Throwable e)
Will shut down the server displaying the cause and time of the shutdown |
void |
start(boolean ownThread)
Start the mule server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[][] CLI_OPTIONS
protected static final String CLASSNAME_DEFAULT_CONFIG_BUILDER
protected static final String CLASSNAME_SPRING_CONFIG_BUILDER
public static final String DEFAULT_CONFIGURATION
Constructor Detail |
---|
public MuleServer()
public MuleServer(String configResources)
Method Detail |
---|
public static void main(String[] args)
args
- command-line argspublic void start(boolean ownThread)
ownThread
- determines if the server will run in its own daemon thread or
the current calling threadpublic void run()
run
in interface Runnable
public static void setConfigBuilderClassName(String builderClassName) throws ClassNotFoundException
MuleXmlConfigurationBuilder
.
builderClassName
- the configuration builder FQN to use
ClassNotFoundException
- if the class with the given name can not be
loadedpublic static String getConfigBuilderClassName()
protected void initialize() throws Exception
Exception
- if failed to initializepublic void shutdown(Throwable e)
e
- the exception that caused the shutdownpublic void shutdown()
public String getConfigurationResources()
public void setConfigurationResources(String configurationResources)
configurationResources
- New value of property configurationResources.public static String getStartupPropertiesFile()
public static void setStartupPropertiesFile(String startupPropertiesFile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |