initInternal

start

Prepare for the beginning of active use of the public methods other than
property getters/setters and life cycle methods of this component. This
method should be called before any of the public methods other than
property getters/setters and life cycle methods of this component are
utilized. The following LifecycleEvents will be fired in the
following order:

START_EVENT: During the method once it is safe to call start() for
any child components. It is at this point that the
state transitions to LifecycleState.STARTING
and that the public methods other than property
getters/setters and life cycle methods may be
used.

AFTER_START_EVENT: At the end of the method, immediately before it
returns. It is at this point that the state
transitions to LifecycleState.STARTED.

startInternal

Sub-classes must ensure that the state is changed to
LifecycleState.STARTING during the execution of this method.
Changing state will trigger the Lifecycle.START_EVENT event.
If a component fails to start it may either throw a
LifecycleException which will cause it's parent to fail to start
or it can place itself in the error state in which case stop()
will be called on the failed component but the parent component will
continue to start normally.

stop

Gracefully terminate the active use of the public methods other than
property getters/setters and life cycle methods of this component. Once
the STOP_EVENT is fired, the public methods other than property
getters/setters and life cycle methods should not be used. The following
LifecycleEvents will be fired in the following order:

STOP_EVENT: During the method once it is safe to call stop() for
any child components. It is at this point that the
state transitions to LifecycleState.STOPPING
and that the public methods other than property
getters/setters and life cycle methods may no longer be
used.

AFTER_STOP_EVENT: At the end of the method, immediately before it
returns. It is at this point that the state
transitions to LifecycleState.STOPPED.

getStateName

Obtain a textual representation of the current component state. Useful
for JMX. The format of this string may vary between point releases and
should not be relied upon to determine component state. To determine
component state, use Lifecycle.getState().

setState

Provides a mechanism for sub-classes to update the component state.
Calling this method will automatically fire any associated
Lifecycle event. It will also check that any attempted state
transition is valid for a sub-class.

setState

Provides a mechanism for sub-classes to update the component state.
Calling this method will automatically fire any associated
Lifecycle event. It will also check that any attempted state
transition is valid for a sub-class.