Modifier and Type | Class and Description |
---|---|
static class |
Lifecycle.Transition |
Enum Constant and Description |
---|
CREATED
The entity has just been created.
|
DESTROYED
The entity is destroyed.
|
ON_FIRE
Entity error state.
|
RUNNING
The entity service is expected to be running.
|
STARTING
The entity is starting.
|
STOPPED
The entity is not expected to be active.
|
STOPPING
The entity is stopping.
|
Modifier and Type | Method and Description |
---|---|
static Lifecycle |
fromValue(java.lang.String v)
Creates a
Lifecycle from a text representation. |
java.lang.String |
toString() |
java.lang.String |
value()
The text representation of the
Enum.name() . |
static Lifecycle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Lifecycle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Lifecycle CREATED
public static final Lifecycle STARTING
This stage is typically entered when the Startable.START
Effector
is called, to undertake the startup operations from the management plane.
When this completes the entity will normally transition to
RUNNING
.
public static final Lifecycle RUNNING
Attributes.SERVICE_UP
will be true,
or will shortly be true if all service start actions have been completed and we are merely waiting for it to be running.public static final Lifecycle STOPPING
Startable.STOP
effector is called. The entity service is stopped.
Sensors that provide data from the running entity may be cleared and subscriptions cancelled.public static final Lifecycle STOPPED
public static final Lifecycle DESTROYED
public static final Lifecycle ON_FIRE
public static Lifecycle[] values()
for (Lifecycle c : Lifecycle.values()) System.out.println(c);
public static Lifecycle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()
Enum.name()
.
This is formatted as lower case characters, with hyphens instead of spaces.public java.lang.String toString()