public class GenericState extends java.lang.Object implements State, java.io.Serializable
StateFlag
s.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()
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
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static GenericState from(State state)