public class ServerManager extends Object
| Constructor and Description |
|---|
ServerManager ()
Construct a server manager.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ServerManager()
public ServerState init(ServerConfigurationInformation serverConfigurationInformation, ServerContextInformation serverContextInformation)
serverConfigurationInformation - ServerConfigurationInformation instanceserverContextInformation - ServerContextInformation instanceServerState.INITIALIZED, if successfulpublic ServerState shutdown()
ServerState.UNDETERMINED public ServerState start()
SynapseException will be thrownServerState.STARTED public ServerState startMaintenance()
ServerState.MAINTENANCE public ServerState endMaintenance()
ServerState.MAINTENANCE public ServerState stop()
SynapseException will be thrownServerState.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 stopSynapseException public ServerConfigurationInformation getServerConfigurationInformation()
SynapseException will be thrownpublic ServerContextInformation getServerContextInformation()
SynapseException will be thrownpublic ClassLoader getClassLoader()
public boolean isInitialized()
public ServerState getServerState()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.