|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.container.lifecycle.AbstractLifeCycle
public abstract class AbstractLifeCycle
Implementation of the LifeCycle mbean. This lifecycle mbean
sends notifications about changes of state.
| Field Summary | |
|---|---|
protected java.lang.Object |
activitySynchronizer
|
protected boolean |
forcedState
Force the set of a state, ignoring eventual errors when changing of states |
protected boolean |
initialized
|
protected org.ow2.petals.util.LoggingUtil |
log
|
protected java.lang.String |
name
|
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
AbstractLifeCycle()
Creates a new instance of AbstractLifeCycle |
|
| Method Summary | |
|---|---|
abstract void |
doInit()
|
abstract void |
doShutdown()
|
abstract void |
doStart()
|
abstract void |
doStop()
|
java.lang.String |
getCurrentState()
|
protected abstract java.lang.String |
getJBIArtifactType()
|
boolean |
isShutdownState()
|
boolean |
isStartedState()
|
boolean |
isStoppedState()
|
boolean |
isUnknownState()
|
void |
setForcedState(boolean forcedState)
|
protected void |
setState(java.lang.String state)
Set the State reference of the current state. |
void |
shutDown()
Shutdown the component. |
void |
start()
Start the component. |
void |
stop()
Stop the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object activitySynchronizer
protected boolean initialized
protected org.ow2.petals.util.LoggingUtil log
protected java.lang.String name
protected boolean forcedState
| Constructor Detail |
|---|
public AbstractLifeCycle()
AbstractLifeCycle
| Method Detail |
|---|
public abstract void doInit()
throws javax.jbi.JBIException
javax.jbi.JBIException
public abstract void doShutdown()
throws javax.jbi.JBIException
javax.jbi.JBIException
public abstract void doStart()
throws javax.jbi.JBIException
javax.jbi.JBIException
public abstract void doStop()
throws javax.jbi.JBIException
javax.jbi.JBIExceptionpublic java.lang.String getCurrentState()
getCurrentState in interface javax.jbi.management.LifeCycleMBeanLifeCycleMBean.getCurrentState()public boolean isShutdownState()
public boolean isStartedState()
public boolean isStoppedState()
public boolean isUnknownState()
public void setForcedState(boolean forcedState)
public void shutDown()
throws javax.jbi.JBIException
shutDown in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException - in case of runtimeException or incoherent state.javax.jbi.management.LifeCycleMBean#shutdown()
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException - in case of runtimeException or incoherent state.LifeCycleMBean.start()
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException - in case of runtimeException or incoherent state.LifeCycleMBean.stop()protected abstract java.lang.String getJBIArtifactType()
protected void setState(java.lang.String state)
throws javax.jbi.JBIException
State reference of the current state. An
LifeCycleStateEventAbstract is thrown.
state -
javax.jbi.JBIException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||