|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 SynapseControllerserverConfigurationInformation - ServerConfigurationInformation InstanceserverContextInformation - Server Context if the Axis2 Based Server
Environment has been already set up.public void destroy()
destroy in interface SynapseControllerpublic boolean isInitialized()
isInitialized in interface SynapseControllerpublic void start()
start in interface SynapseControllerpublic void startMaintenance()
startMaintenance in interface SynapseControllerpublic void endMaintenance()
endMaintenance in interface SynapseControllerpublic void stop()
stop in interface SynapseControllerpublic SynapseEnvironment createSynapseEnvironment()
createSynapseEnvironment in interface SynapseControllerpublic void destroySynapseEnvironment()
destroySynapseEnvironment in interface SynapseControllerpublic SynapseConfiguration createSynapseConfiguration()
createSynapseConfiguration in interface SynapseControllerpublic 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 SynapseControllerwaitIntervalMillis - 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 | |||||||||