|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.spi.AbstractLifecycle
public abstract class AbstractLifecycle
Base class providing a simple implementation of Lifecycle.
Field Summary | |
---|---|
protected int |
lifecycleState
|
Fields inherited from interface org.apache.tuscany.spi.Lifecycle |
---|
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED |
Constructor Summary | |
---|---|
AbstractLifecycle()
|
Method Summary | |
---|---|
int |
getLifecycleState()
Returns the lifecycle state |
protected void |
setLifecycleState(int lifecycleState)
Set the current state of the Lifecycle. |
void |
start()
Starts the Lifecycle. |
void |
stop()
Stops the Lifecycle. |
String |
toString()
Returns the current lifecycle as a String (for example, "RUNNING"). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected volatile int lifecycleState
Constructor Detail |
---|
public AbstractLifecycle()
Method Detail |
---|
public int getLifecycleState()
Lifecycle
getLifecycleState
in interface Lifecycle
Lifecycle.UNINITIALIZED
,
Lifecycle.INITIALIZING
,
Lifecycle.INITIALIZED
,
Lifecycle.RUNNING
,
Lifecycle.STOPPING
,
Lifecycle.STOPPED
protected void setLifecycleState(int lifecycleState)
lifecycleState
- the new statepublic void start()
Lifecycle
start
in interface Lifecycle
public void stop()
Lifecycle
stop
in interface Lifecycle
public String toString()
toString
in class Object
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |