|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.Axis2SynapseController
public class Axis2SynapseController
Axis2 Based Synapse Controller.
SynapseController
Field Summary | |
---|---|
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 Summary | |
---|---|
Axis2SynapseController()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SynapseConfiguration synapseConfiguration
protected SynapseEnvironment synapseEnvironment
protected ServerConfigurationInformation serverConfigurationInformation
protected ServerContextInformation serverContextInformation
Constructor Detail |
---|
public Axis2SynapseController()
Method Detail |
---|
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 successfully
endTime
,
otherwise false (forceful stop required)public Object getContext()
SynapseController
getContext
in interface SynapseController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |