public class TaskExecutionEvent extends EventObject
source| Constructor and Description |
|---|
TaskExecutionEvent(Task task,
String jobId,
long cpuTime,
long elapsedTime,
boolean error)
Initialize this event object with the specified task.
|
| Modifier and Type | Method and Description |
|---|---|
Task |
getTask()
Get the JPPF task from which the event originates.
|
TaskInformation |
getTaskInformation()
Get the object encapsulating information about the task.
|
getSource, toStringpublic TaskExecutionEvent(Task task, String jobId, long cpuTime, long elapsedTime, boolean error)
task - the JPPF task from which the event originates.jobId - the id of the job this task belongs to.cpuTime - the cpu time taken by the task.elapsedTime - the wall clock time taken by the task.error - determines whether the task had an exception.public Task getTask()
JPPFTask instance.public TaskInformation getTaskInformation()
TaskInformation instance.Copyright © 2005-2012 JPPF Team.