|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
org.opensync.engine.server.TaskEvent
An event which indicates that a task event occurred. A TaskEvent object is passed to every TaskListener object which registered to receive the "interesting" task events using the component's addTaskListener method.
| Field Summary | |
protected long |
delay
The delay given by the task |
protected java.lang.Exception |
exception
The exception which cause failure |
protected java.util.Date |
start
The date when the task start |
protected java.util.Date |
stop
The date when the task stop |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
TaskEvent(Task task,
java.util.Date start)
Construct a TaskEvent when the task start |
|
TaskEvent(Task task,
java.util.Date stop,
java.lang.Exception exception)
Construct a TaskEvent when the task fail |
|
TaskEvent(Task task,
java.util.Date stop,
long delay)
Construct a TaskEvent when the task stop |
|
| Method Summary | |
long |
getDelay()
Get the delay used by the task |
java.lang.Exception |
getException()
Get the exception which cause failure |
java.util.Date |
getStart()
Get the time when the start start |
java.util.Date |
getStop()
Get the time when the start stop |
Task |
getTask()
Get the task who send this event |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Date start
protected java.util.Date stop
protected java.lang.Exception exception
protected long delay
| Constructor Detail |
public TaskEvent(Task task,
java.util.Date start)
task - the task who send this eventstart - the date when the task start
public TaskEvent(Task task,
java.util.Date stop,
long delay)
task - the task who send this eventstop - the date when the task stopdelay - the delay used by the task
public TaskEvent(Task task,
java.util.Date stop,
java.lang.Exception exception)
task - the task who send this eventstop - stop the date when the task stopexception - the exception which cause failure| Method Detail |
public long getDelay()
public java.util.Date getStart()
public java.util.Date getStop()
public java.lang.Exception getException()
public Task getTask()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||