|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.ServerManager
public class ServerManager
This is the core class that starts up a Synapse instance.
From the command line scripts synapse.sh and synapse-daemon.sh (though the wrapper.conf) the SynapseServer is invoked which in turn calls on this to start the instance When the WAR deployment is used, the SynapseStartUpServlet servlet calls on this class to initialize Synapse. This is the entry point for starting an Synapse instance. All the synapse related management operations are exposed through this class.
Constructor Summary | |
---|---|
ServerManager()
Construct a server manager. |
Method Summary | |
---|---|
ServerState |
endMaintenance()
Ends server maintenance resuming transport listeners, senders and tasks. |
ClassLoader |
getClassLoader()
Returns the context class loader of the original thread. |
ServerConfigurationInformation |
getServerConfigurationInformation()
Returns the ServerConfigurationInformation, if the system is initialized and if not a Runtime exception of type SynapseException will be thrown |
ServerContextInformation |
getServerContextInformation()
Returns the ServerContextInformation, if the system is initialized and if not a Runtime Exception of type SynapseException will be thrown |
ServerState |
getServerState()
Retrieves the state of the server. |
ServerState |
init(ServerConfigurationInformation serverConfigurationInformation,
ServerContextInformation serverContextInformation)
Initializes the server, if we need to create a new axis2 instance, calling this will create the new axis2 environment, but this won't start the transport listeners |
boolean |
isInitialized()
Has server manager been initialized ? |
ServerState |
shutdown()
Shuts down the Server instance. |
ServerState |
start()
Starts the system, if the system is initialized, and if not a Runtime exception of type SynapseException will be thrown |
ServerState |
startMaintenance()
Put transport listeners and senders into maintenance mode. |
ServerState |
stop()
Stops the system, if it is started and if not a Runtime exception of type SynapseException will be thrown |
ServerState |
stopGracefully(long maxWaitMillis)
Perform a graceful stop of Synapse. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerManager()
Method Detail |
---|
public ServerState init(ServerConfigurationInformation serverConfigurationInformation, ServerContextInformation serverContextInformation)
serverConfigurationInformation
- ServerConfigurationInformation instanceserverContextInformation
- ServerContextInformation instance
ServerState.INITIALIZED
, if successfulpublic ServerState shutdown()
ServerState.UNDETERMINED
public ServerState start()
SynapseException
will be thrown
ServerState.STARTED
public ServerState startMaintenance()
ServerState.MAINTENANCE
public ServerState endMaintenance()
ServerState.MAINTENANCE
public ServerState stop()
SynapseException
will be thrown
ServerState.STOPPED
for a successful stoppingpublic ServerState stopGracefully(long maxWaitMillis)
maxWaitMillis
- the maximum number of ms to wait until a graceful stop is achieved,
before forcing a stop
SynapseException
public ServerConfigurationInformation getServerConfigurationInformation()
SynapseException
will be thrown
public ServerContextInformation getServerContextInformation()
SynapseException
will be thrown
public ClassLoader getClassLoader()
public boolean isInitialized()
public ServerState getServerState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |