com.cloudtran.jmx
Interface ApplicationLifeCycleMBean

All Known Implementing Classes:
ApplicationLifeCycle

public interface ApplicationLifeCycleMBean

This interface provides life cycle information about the coordinator, and also provides methods to control the life cycle.

Author:
Admin

Method Summary
 boolean isAllowServiceCalls()
           
 boolean isOpenForBusiness()
           
 boolean isReadyToShutDown()
           
 boolean isShutDownInProgress()
           
 String shutDownCoordinator()
          Gracefully shuts down the transaction coordinator.
 

Method Detail

isOpenForBusiness

boolean isOpenForBusiness()

isReadyToShutDown

boolean isReadyToShutDown()
Returns:
true if the transaction coordinator is ready to be shut down.

isAllowServiceCalls

boolean isAllowServiceCalls()

isShutDownInProgress

boolean isShutDownInProgress()
Returns:
true if the transaction coordinator is currently being shut down.

shutDownCoordinator

String shutDownCoordinator()
Gracefully shuts down the transaction coordinator. This disallows further incoming requests e.g.: start transaction, then waits until all queues are empty before returning.

Returns:
a message which will tell the operator it is safe to kill the coordinator JVM.