public final class StateEvent
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StateEvent.SerializableNoSource
Used to persist the event.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REPLACEMENT_EXCEPTION_TEXT |
Constructor and Description |
---|
StateEvent(Stateful job,
State jobState)
Constructor.
|
StateEvent(Stateful source,
State state,
java.util.Date time,
java.lang.Throwable exception)
Constructor.
|
StateEvent(Stateful job,
State jobState,
java.lang.Throwable exception)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Throwable |
getException()
Get the exception if applicable, null otherwise.
|
Stateful |
getSource() |
State |
getState()
Get the job state.
|
java.util.Date |
getTime()
Get the time of the event..
|
int |
hashCode() |
StateEvent.SerializableNoSource |
serializable()
Provide something that can be serialised.
|
java.lang.String |
toString()
Override toString.
|
public static final java.lang.String REPLACEMENT_EXCEPTION_TEXT
public StateEvent(Stateful source, State state, java.util.Date time, java.lang.Throwable exception)
source
- The source of the event.state
- The state.time
- the Time of the event.exception
- The exception if applicable, or null otherwise.public StateEvent(Stateful job, State jobState, java.lang.Throwable exception)
job
- The source of the event.jobState
- The state.exception
- The exception if applicable, or null otherwise.public Stateful getSource()
public State getState()
public java.lang.Throwable getException()
public java.util.Date getTime()
public StateEvent.SerializableNoSource serializable()
writeReplace
because there would need to be the corresponding
readResolve
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