org.jppf.server.node
Class TaskExecutionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TaskExecutionEvent(JPPFTask task, String jobId, long cpuTime, long elapsedTime, boolean error)
          Initialize this event object with the specified task.
 
Method Summary
 JPPFTask getTask()
          Get the JPPF task from which the event originates.
 TaskInformation getTaskInformation()
          Get the object encapsulating information about the task.
 
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
 

Constructor Detail

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.
Method Detail

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.