|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.service.ServiceState
public final class ServiceState
This class defines an enumeration of service states. stopped the service is not running running the service is running
Field Summary | |
---|---|
static ServiceState |
RUNNING
|
static ServiceState |
STOPPED
Instatiate instances related to each of the enumerations |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Return true if the two specified object are of the same type and their ordinal values are the same. |
int |
getOrd()
Returns the ordinal value for this state |
boolean |
isRunning()
Return true if this object represents the 'running' state and false otherwise |
boolean |
isStopped()
Return true if this object represents the 'stopped' state and false otherwise |
static int |
size()
Returns the number of states in this enumeration |
java.lang.String |
toString()
Returns the name of this state |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ServiceState STOPPED
public static final ServiceState RUNNING
Method Detail |
---|
public int getOrd()
public java.lang.String toString()
toString
in class java.lang.Object
public static int size()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the object to compare against
public boolean isRunning()
public boolean isStopped()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |