|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XQLifeCycleManager
This is the interface exposed to ESB services to perform life cycle operations on
ESB Container and Services. A service can obtain this interface from the XQInitContext
or XQServiceContext. A service can perform life cycle operations on the following artifacts:
This interface also allows services to access the current state of the ESB Container and Service (itself).
Method Summary | |
---|---|
boolean |
abortContainer()
A service can use this API to stop the ESB container it is hosted in. |
boolean |
abortService()
Abort the service. |
XQState |
getCurrentContainerState()
Returns the current state of the ESB container |
XQState |
getCurrentServiceState()
Returns the current state of the ESB service |
boolean |
isContainerAborting()
Returns true if the container is aborting. |
boolean |
isServiceAborting()
Returns true if the service is aborting. |
void |
setLastError(java.lang.String error)
Set the last error message flag. |
boolean |
startService()
Start the service that was stopped or aborted earlier. |
boolean |
stopContainer()
A service can use this API to stop the ESB container it is hosted in. |
boolean |
stopService()
Stop the service. |
Method Detail |
---|
boolean startService()
java.lang.RuntimeException
- if the service is not in an appropriate state
to perform this operationboolean stopService()
java.lang.RuntimeException
- if the service is not in an appropriate state
to perform this operationboolean abortService()
java.lang.RuntimeException
- if the service is not in an appropriate state
to perform this operationXQState getCurrentServiceState()
boolean stopContainer()
java.lang.RuntimeException
- if the container is not in an appropriate state
to perform this operationboolean abortContainer()
java.lang.RuntimeException
- if the container is not in an appropriate state
to perform this operationXQState getCurrentContainerState()
boolean isServiceAborting()
boolean isContainerAborting()
void setLastError(java.lang.String error)
error
- The error message
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |