public enum EventState extends java.lang.Enum<EventState> implements State
InstantEventSource.| Enum Constant and Description |
|---|
COMPLETE
The node has stopped subscribing but did receive an event.
|
CONNECTING
The node is connecting to it's event source.
|
DESTROYED
The job has been destroyed.
|
EXCEPTION
Indicates an exception has occurred.
|
FIRING
A node is receiving an event.
|
INCOMPLETE
The node has stopped subscribing but didn't receive an event.
|
READY
The Node is ready to be started.
|
TRIGGERED
An event has arrived but we are still waiting for more.
|
WAITING
A node is waiting for its first event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isComplete()
Is a job or service complete?
|
boolean |
isDestroyed()
The job is destroyed.
|
boolean |
isException()
Is a job in an exception state.
|
boolean |
isExecuting()
Is the job executing.
|
boolean |
isIncomplete()
Is a job or service incomplete.
|
boolean |
isReady()
Is a job ready to be executed.
|
boolean |
isStoppable()
Can a job be stopped? This is a catch all for jobs
that are active or executing.
|
static EventState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventState READY
public static final EventState CONNECTING
public static final EventState WAITING
public static final EventState FIRING
public static final EventState TRIGGERED
public static final EventState INCOMPLETE
public static final EventState COMPLETE
public static final EventState EXCEPTION
public static final EventState DESTROYED
public static EventState[] values()
for (EventState c : EventState.values()) System.out.println(c);
public static EventState 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 boolean isReady()
Statepublic boolean isExecuting()
StateisExecuting in interface Statepublic boolean isStoppable()
StateisStoppable in interface Statepublic boolean isComplete()
StateisComplete in interface Statepublic boolean isIncomplete()
StateisIncomplete in interface Statepublic boolean isException()
StateisException in interface Statepublic boolean isDestroyed()
StateisDestroyed in interface State