org.globus.exec.monitoring
Class SchedulerEvent

java.lang.Object
  extended byorg.globus.exec.monitoring.SchedulerEvent

class SchedulerEvent
extends Object

Class used internally by the JobStateMonitor to store events emmited by the Scheduler Event Generator.


Nested Class Summary
private static class SchedulerEvent.Comparator
           
 
Field Summary
private static SchedulerEvent.Comparator comparator
           
private  int exitCode
           
private  String localId
           
private  StateEnumeration state
           
private  Date timestamp
           
 
Constructor Summary
SchedulerEvent(Date timestamp, String localId, StateEnumeration state, int exitCode)
          Create a new SchedulerEvent.
 
Method Summary
static Comparator getComparator()
          Return a reference to the comparator used to order events.
 int getExitCode()
          Return the value of the event's exit code
 String getLocalId()
          Retrieve the value of the event's local ID
 StateEnumeration getState()
          Return the value of the event's state
 Date getTimeStamp()
          Retreive the value of the event's time stamp
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

private Date timestamp

localId

private String localId

state

private StateEnumeration state

exitCode

private int exitCode

comparator

private static SchedulerEvent.Comparator comparator
Constructor Detail

SchedulerEvent

public SchedulerEvent(Date timestamp,
                      String localId,
                      StateEnumeration state,
                      int exitCode)
Create a new SchedulerEvent. Event contents cannot change after being created.

Method Detail

getTimeStamp

public Date getTimeStamp()
Retreive the value of the event's time stamp


getLocalId

public String getLocalId()
Retrieve the value of the event's local ID


getState

public StateEnumeration getState()
Return the value of the event's state


getExitCode

public int getExitCode()
Return the value of the event's exit code


toString

public String toString()

getComparator

public static Comparator getComparator()
Return a reference to the comparator used to order events. Used by the JobStateMonitor's event cache.