planetj.util
Class TaskEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--planetj.util.TaskEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TestTaskEvent

public class TaskEvent
extends EventObject

Author:
PlanetJ Corporation
See Also:
Serialized Form

Constructor Summary
TaskEvent(Object source)
          TaskEvent constructor comment.
 
Method Summary
 Date getCompletionTime()
          Returns the time the task completed.
 Exception getException()
          Return the Exception that occured while the task was executing.
 Object getResult()
          Return a result from the execution of the task.
 Date getStartTime()
          Returns the time the Task started.
 void setResult(Object pResult)
          Sets a result from the execution of the task.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskEvent

public TaskEvent(Object source)
TaskEvent constructor comment.

Parameters:
source - java.lang.Object
Method Detail

getCompletionTime

public Date getCompletionTime()
Returns the time the task completed. If the task failed, the completion time is the time the task failed.

Returns:
java.util.Date

getException

public Exception getException()
Return the Exception that occured while the task was executing. Null is returned if no exception occurred while performing the task.

Returns:
The exeception (if there was one) that occurred while performing the task.

getResult

public Object getResult()
Return a result from the execution of the task. Depending upon the task, there might not be a result.

Returns:
The result from executing the task.

getStartTime

public Date getStartTime()
Returns the time the Task started.

Returns:
java.util.Date

setResult

public void setResult(Object pResult)
Sets a result from the execution of the task.

Parameters:
pResult - The result from executing the task.