|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SynapseController
The controller for synapse Create, Start, Stop and Destroy synapse artifacts in a particular environment
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 successfully
endTime
,
otherwise false (forceful stop required)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |