|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.norna.Status
Status objects used by the Norna framework. This class contains static identifiers for different states of a service. Service in the Norna framework follows the following pattern where states in brackets are optional:
creation
[initialization]
[starting]
[ready]
[stopping]
[stopped]
[unloaded]
[destroyed]
failed status for service failures.
A service is not availiable to the rest of the framework until it reports it status as being ready through the StatusCallback interface.
StatusCallback| Field Summary | |
static Status |
CREATED
Created status. |
static Status |
DESTROYED
Destroyed status. |
static Status |
FAILED
Failed status. |
static Status |
INITIALIZED
Initialized status. |
static Status |
LOADED
Loaded status. |
static Status |
READY
This service is redy for use. |
static Status |
STARTING
Starting status. |
static Status |
STOPPED
Stopped status. |
static Status |
STOPPING
Stopping status. |
static Status |
UNLOADED
Unloaded status. |
| Method Summary | |
boolean |
equals(java.lang.Object o)
Check equality |
static Status |
parse(java.lang.String str)
Parse a string status into a status object, returns nulll if the status is not recognized. |
java.lang.String |
toString()
To string, returns the status name in lowercase |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Status CREATED
public static final Status INITIALIZED
public static final Status LOADED
public static final Status STARTING
public static final Status READY
public static final Status STOPPING
public static final Status STOPPED
public static final Status UNLOADED
public static final Status DESTROYED
public static final Status FAILED
| Method Detail |
public static Status parse(java.lang.String str)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||