public interface SynapseController
Modifier and Type | Method and Description |
---|---|
SynapseConfiguration |
createSynapseConfiguration()
Creates the Synapse configuration by reading and processing the synapse configuration file.
|
SynapseEnvironment |
createSynapseEnvironment()
Creates the SynapseEnvironment instance.
|
void |
destroy()
Destroys the Synapse Controller.
|
void |
destroySynapseConfiguration()
Destroys the SynapseConfiguration instance
|
void |
destroySynapseEnvironment()
Destroys the SynapseEnvironment instance.
|
void |
endMaintenance()
Recovers the Synapse Server from maintenance mode resuming transport listeners, senders
and tasks.
|
Object |
getContext()
Returns underlying environment context
|
void |
init(ServerConfigurationInformation configurationInformation,
ServerContextInformation contextInformation)
Initialization of the synapse controller
|
boolean |
isInitialized()
Explicitly checks the initialization.
|
void |
start()
Starts the synapse controller and in turn the synapse server.
|
void |
startMaintenance()
Puts the Synapse Server into a maintenance mode pausing transport listeners, senders
and tasks.
|
void |
stop()
Stops the synapse controller and in turn the synapse server.
|
boolean |
waitUntilSafeToStop(long waitIntervalMillis,
long endTime)
Waits until it is safe to stop or the specified end time has been reached.
|
void init(ServerConfigurationInformation configurationInformation, ServerContextInformation contextInformation)
configurationInformation
- server information instance Information about the servercontextInformation
- if there is a context already has been built.void destroy()
boolean isInitialized()
void start()
void stop()
SynapseEnvironment createSynapseEnvironment()
void destroySynapseEnvironment()
SynapseConfiguration createSynapseConfiguration()
void destroySynapseConfiguration()
Object getContext()
void startMaintenance()
void endMaintenance()
boolean waitUntilSafeToStop(long waitIntervalMillis, long endTime)
waitIntervalMillis
milliseconds is used between each subsequent check.
If the state "safeToStop" is reached before the specified endTime
,
the return value is true.waitIntervalMillis
- the pause time (delay) in milliseconds between subsequent checksendTime
- the time until which the checks need to finish successfullyendTime
,
otherwise false (forceful stop required)Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.