public class Axis2SynapseController extends Object implements SynapseController
SynapseController
Modifier and Type | Field and Description |
---|---|
protected ServerConfigurationInformation |
serverConfigurationInformation
ServerConfiguration Information
|
protected ServerContextInformation |
serverContextInformation
Runtime information about the server
|
protected SynapseConfiguration |
synapseConfiguration
Reference to the Synapse configuration
|
protected SynapseEnvironment |
synapseEnvironment
Reference to the Synapse configuration
|
Constructor and Description |
---|
Axis2SynapseController() |
Modifier and Type | Method and Description |
---|---|
SynapseConfiguration |
createSynapseConfiguration()
Creates the Synapse configuration by reading and processing the synapse configuration file.
|
SynapseEnvironment |
createSynapseEnvironment()
Setup synapse in axis2 environment and return the created instance.
|
void |
destroy()
Destroys the Synapse Controller.
|
void |
destroySynapseConfiguration()
Destroys the SynapseConfiguration instance
|
void |
destroySynapseEnvironment()
Destroys the Synapse Environment by undeploying all Axis2 services.
|
void |
endMaintenance()
Recovers the Synapse Server from maintenance mode resuming transport listeners, senders
and tasks.
|
Object |
getContext()
Returns underlying environment context
|
void |
init(ServerConfigurationInformation serverConfigurationInformation,
ServerContextInformation serverContextInformation)
Initialization of the synapse controller
|
boolean |
isInitialized()
Explicitly checks the initialization.
|
void |
start()
Adds the synapse handlers to the inflow Dispatch phase and starts the listener manager
if the axis2 instance is created by the Synapse
|
void |
startMaintenance()
Puts the Synapse Server into a maintenance mode pausing transport listeners, senders
and tasks.
|
void |
stop()
Cleanup the axis2 environment and stop the synapse environment.
|
boolean |
waitUntilSafeToStop(long waitIntervalMillis,
long endTime)
Waits until it is safe to stop or the the specified end time has been reached.
|
protected SynapseConfiguration synapseConfiguration
protected SynapseEnvironment synapseEnvironment
protected ServerConfigurationInformation serverConfigurationInformation
protected ServerContextInformation serverContextInformation
public void init(ServerConfigurationInformation serverConfigurationInformation, ServerContextInformation serverContextInformation)
init
in interface SynapseController
serverConfigurationInformation
- ServerConfigurationInformation InstanceserverContextInformation
- Server Context if the Axis2 Based Server
Environment has been already set up.public void destroy()
destroy
in interface SynapseController
public boolean isInitialized()
isInitialized
in interface SynapseController
public void start()
start
in interface SynapseController
public void startMaintenance()
startMaintenance
in interface SynapseController
public void endMaintenance()
endMaintenance
in interface SynapseController
public void stop()
stop
in interface SynapseController
public SynapseEnvironment createSynapseEnvironment()
createSynapseEnvironment
in interface SynapseController
public void destroySynapseEnvironment()
destroySynapseEnvironment
in interface SynapseController
public SynapseConfiguration createSynapseConfiguration()
createSynapseConfiguration
in interface SynapseController
public void destroySynapseConfiguration()
destroySynapseConfiguration
in interface SynapseController
public 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.waitUntilSafeToStop
in interface SynapseController
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)public Object getContext()
SynapseController
getContext
in interface SynapseController
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.