org.globus.exec.monitoring
Class SchedulerEvent

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

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

Field Detail

timestamp

private java.util.Date timestamp

localId

private java.lang.String localId

state

private StateEnumeration state

exitCode

private int exitCode

comparator

private static SchedulerEvent.Comparator comparator
Constructor Detail

SchedulerEvent

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

Method Detail

getTimeStamp

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


getLocalId

public java.lang.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 java.lang.String toString()

getComparator

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