| org.apache.geronimo.kernel.management.StateManageable
All known Subclasses: org.apache.geronimo.gbean.runtime.GBeanInstance,
StateManageable | public interface StateManageable (Code) | | A Java interface the meets the J2EE Management specification for a state manageable object.
version: $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $ |
Method Summary | |
long | getStartTime() | int | getState() Gets the state of this component as an int. | State | getStateInstance() Gets the state of this component as a State instance. | void | start() Transitions the component to the starting state. | void | startRecursive() Transitions the component to the starting state. | void | stop() Transitions the component to the stopping state. |
getStartTime | long getStartTime()(Code) | | Gets the start time of this component
time in milliseonds since epoch that this component was started. |
getState | int getState()(Code) | | Gets the state of this component as an int.
The int return is required by the JSR77 specification.
the current state of this component See Also: StateManageable.getStateInstance See Also: to obtain the State instance |
getStateInstance | State getStateInstance()(Code) | | Gets the state of this component as a State instance.
the current state of this component |
start | void start() throws Exception, IllegalStateException(Code) | | 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.
throws: Exception - if a problem occurs during the transition throws: IllegalStateException - if this interceptor is not in the stopped or failed state |
startRecursive | void startRecursive() throws Exception, IllegalStateException(Code) | | 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.
throws: Exception - if a problem occurs during the transition throws: IllegalStateException - if this interceptor is not in the STOPPED or FAILED state |
stop | void stop() throws Exception, IllegalStateException(Code) | | 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.
throws: Exception - if a problem occurs during the transition throws: IllegalStateException - if this interceptor is not in the STOPPED or FAILED state |
|
|