A Java interface the meets the J2EE Management specification for a state manageable object.
Method from org.apache.geronimo.kernel.management.StateManageable Detail: |
public long getStartTime()
Gets the start time of this component |
public int getState()
Gets the state of this component as an int.
The int return is required by the JSR77 specification. |
public State getStateInstance()
Gets the state of this component as a State instance. |
public void start() throws Exception, IllegalStateException
Transitions the component to the starting state. This method has access to the
container.
Normally a component uses this to cache data from other components. The other components will
have been created at this stage, but not necessairly started and may not be ready to have methods
invoked on them. |
public void startRecursive() throws Exception, IllegalStateException
Transitions the component to the starting state. This method has access to the
container.
If this Component is a Container, then startRecursive is called on all child Components
that are in the STOPPED or FAILED state.
Normally a component uses this to cache data from other components. The other components will
have been created at this stage, but not necessairly started and may not be ready to have methods
invoked on them. |
public void stop() throws Exception, IllegalStateException
Transitions the component to the stopping state. This method has access to the
container.
If this is Component is a Container, then all its child components must be in the
STOPPED or FAILED State.
Normally a component uses this to drop references to data cached in the start method.
The other components will not necessairly have been stopped at this stage and may not be ready
to have methods invoked on them. |