|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.oddjob.state.StateEvent
public class StateEvent
An instance of this class is produced when a job state changes. It is passed to all JobStateListeners.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
StateEvent(Stateful job,
State jobState)
Constructor. |
|
StateEvent(Stateful job,
State jobState,
Date time,
Throwable exception)
Constructor. |
|
StateEvent(Stateful job,
State jobState,
Throwable exception)
Constructor. |
Method Summary | |
---|---|
Throwable |
getException()
Get the exception if applicable, null otherwise. |
Stateful |
getSource()
|
State |
getState()
Get the job state. |
Date |
getTime()
Get the time of the event.. |
String |
toString()
Override toString. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateEvent(Stateful job, State jobState, Date time, Throwable exception)
job
- The source of the event.jobState
- The state.time
- the Time of the event.exception
- The exception if applicable, or null otherwise.public StateEvent(Stateful job, State jobState, Throwable exception)
job
- The source of the event.jobState
- The state.exception
- The exception if applicable, or null otherwise.public StateEvent(Stateful job, State jobState)
job
- The source of the event.jobState
- The state.Method Detail |
---|
public Stateful getSource()
getSource
in class EventObject
public State getState()
public Throwable getException()
public Date getTime()
public String toString()
toString
in class EventObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |