public class GenericState extends java.lang.Object implements State, java.io.Serializable
StateFlags.| Constructor and Description |
|---|
GenericState(java.lang.String name,
java.util.Collection<StateFlag> flags) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static GenericState |
from(State state) |
int |
hashCode() |
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 boolean |
statesEquivalent(State first,
State second) |
java.lang.String |
toString() |
public GenericState(java.lang.String name,
java.util.Collection<StateFlag> flags)
public 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 Statepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static GenericState from(State state)