plgrid.event
Class EventFinished

java.lang.Object
  extended by plgrid.event.GridEvent
      extended by plgrid.event.EventFinished

public class EventFinished
extends GridEvent

This is one of children of GridEvent class. It should be sent to Pipeline when job is finished its execution


Constructor Summary
EventFinished()
          Default comnstructor
EventFinished(java.lang.String jobId, java.lang.String taskId, long endTime, int exitStatus)
          Constructor with job info
EventFinished(java.lang.String jobId, java.lang.String taskId, long endTime, long startTime, int exitStatus)
          Constructor with job info
 
Method Summary
 int getExitStatus()
          Returns Exit Status of the job
 long getFinishTime()
          Return the finish time of the job
 long getStartTime()
          Return start time of the job
 void setExitStatus(int exitStatus)
          Sets exit status
 void setFinishTime(long finishTime)
          Sets the finish time
 void setStartTime(long startTime)
          Sets end time
 java.lang.String toString()
           
 
Methods inherited from class plgrid.event.GridEvent
fromXML, fromXMLElement, getError, getJobId, getTaskId, hasError, setError, setJobId, setTaskId, toXML, toXMLElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventFinished

public EventFinished()
Default comnstructor


EventFinished

public EventFinished(java.lang.String jobId,
                     java.lang.String taskId,
                     long endTime,
                     int exitStatus)
Constructor with job info

Parameters:
jobId - The Job ID
taskId - The Task ID
endTime - End time of the job
exitStatus - Exit Status of the job

EventFinished

public EventFinished(java.lang.String jobId,
                     java.lang.String taskId,
                     long endTime,
                     long startTime,
                     int exitStatus)
Constructor with job info

Parameters:
jobId - The Job ID
taskId - The Task ID
endTime - End time of the job
startTime - Start time of the job
exitStatus - Exit Status of the job
Method Detail

setFinishTime

public void setFinishTime(long finishTime)
Sets the finish time

Parameters:
finishTime - Finish time in milliseconds

setStartTime

public void setStartTime(long startTime)
Sets end time

Parameters:
startTime - End time in milliseconds

setExitStatus

public void setExitStatus(int exitStatus)
Sets exit status

Parameters:
exitStatus - Exit status of the job

getFinishTime

public long getFinishTime()
Return the finish time of the job

Returns:
End time in milliseconds

getStartTime

public long getStartTime()
Return start time of the job

Returns:
Start time in milliseconds

getExitStatus

public int getExitStatus()
Returns Exit Status of the job

Returns:
Exit Status of the job

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object