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()
State
public boolean isExecuting()
State
isExecuting
in interface State
public boolean isStoppable()
State
isStoppable
in interface State
public boolean isComplete()
State
isComplete
in interface State
public boolean isIncomplete()
State
isIncomplete
in interface State
public boolean isException()
State
isException
in interface State
public boolean isDestroyed()
State
isDestroyed
in interface State