org.jppf.server.node
Class TaskExecutionEvent
java.lang.Object
java.util.EventObject
org.jppf.server.node.TaskExecutionEvent
- All Implemented Interfaces:
- Serializable
public class TaskExecutionEvent
- extends EventObject
Instances of this class represent events that occur during the life span of an individual JPPF task.
- Author:
- Laurent Cohen
- See Also:
- Serialized Form
|
Constructor Summary |
TaskExecutionEvent(JPPFTask task,
String jobId,
long cpuTime,
long elapsedTime,
boolean error)
Initialize this event object with the specified task. |
TaskExecutionEvent
public TaskExecutionEvent(JPPFTask task,
String jobId,
long cpuTime,
long elapsedTime,
boolean error)
- Initialize this event object with the specified task.
- Parameters:
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.
getTask
public JPPFTask getTask()
- Get the JPPF task from which the event originates.
- Returns:
- a
JPPFTask instance.
getTaskInformation
public TaskInformation getTaskInformation()
- Get the object encapsulating information about the task.
- Returns:
- a
TaskInformation instance.
Copyright © 2005-2010 JPPF Team.