|
||||||||||
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-spring-config. |
protected static String |
CLASSNAME_DEFAULT_IDLE_CONFIG_BUILDER
This builder sets up the configuration for an idle Mule node - a node that doesn't do anything initially but is fed configuration during runtime |
protected static String |
CLASSNAME_SPRING_CONFIG_BUILDER
Required to support the '-config spring' shortcut. |
static String[][] |
CLI_OPTIONS
|
static String |
DEFAULT_CONFIGURATION
|
protected static MuleContext |
muleContext
The MuleContext should contain anything which does not belong in the Registry. |
protected Map |
options
|
Constructor Summary | |
---|---|
MuleServer()
|
|
MuleServer(String configResources)
|
|
MuleServer(String[] args)
Configure the server with command-line arguments. |
Method Summary | |
---|---|
static String |
getConfigBuilderClassName()
Returns the class name of the configuration builder used to create this MuleServer. |
String |
getConfigurationResources()
Getter for property messengerURL. |
Log |
getLogger()
|
static MuleContext |
getMuleContext()
|
static String |
getStartupPropertiesFile()
|
protected void |
init(String[] args)
|
void |
initialize()
Initializes this daemon. |
static void |
main(String[] args)
Application entry point. |
void |
registerShutdownHook(MuleShutdownHook muleShutdownHook)
|
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 configurationResources. |
static void |
setMuleContext(MuleContext muleContext)
|
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,
boolean registerShutdownHook)
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_DEFAULT_IDLE_CONFIG_BUILDER
protected static final String CLASSNAME_SPRING_CONFIG_BUILDER
public static final String DEFAULT_CONFIGURATION
protected Map options
protected static MuleContext muleContext
Constructor Detail |
---|
public MuleServer()
public MuleServer(String configResources)
public MuleServer(String[] args) throws IllegalArgumentException
IllegalArgumentException
Method Detail |
---|
public static void main(String[] args) throws Exception
args
- command-line args
Exception
protected void init(String[] args) throws IllegalArgumentException
IllegalArgumentException
public void start(boolean ownThread, boolean registerShutdownHook)
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
SpringXmlConfigurationBuilder
.
builderClassName
- the configuration builder FQN to use
ClassNotFoundException
- if the class with the given name can not be
loadedpublic static String getConfigBuilderClassName()
public void initialize() throws Exception
Exception
- if failed to initializepublic void shutdown(Throwable e)
e
- the exception that caused the shutdownpublic void shutdown()
public Log getLogger()
public void registerShutdownHook(MuleShutdownHook muleShutdownHook)
public String getConfigurationResources()
public void setConfigurationResources(String configurationResources)
configurationResources
- New value of property configurationResources.public static String getStartupPropertiesFile()
public static void setStartupPropertiesFile(String startupPropertiesFile)
public static MuleContext getMuleContext()
public static void setMuleContext(MuleContext muleContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |