uk.ac.rdg.resc.jstyx.gridservice.server
Class InstanceTerminatorTrigger

java.lang.Object
  extended by org.quartz.Trigger
      extended by org.quartz.SimpleTrigger
          extended by uk.ac.rdg.resc.jstyx.gridservice.server.InstanceTerminatorTrigger
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class InstanceTerminatorTrigger
extends org.quartz.SimpleTrigger

Job that is fired by the Quartz scheduler in order to automatically destroy a Styx Grid Service instance (i.e. a garbage collector)

Author:
Jon Blower $Revision: 564 $ $Date: 2006-01-04 16:45:29 +0000 (Wed, 04 Jan 2006) $ $Log$ Revision 1.1 2006/01/04 16:45:29 jonblower Implemented automatic termination of SGS instances using Quartz scheduler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.quartz.SimpleTrigger
MISFIRE_INSTRUCTION_FIRE_NOW, MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT, MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT, MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT, MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT, REPEAT_INDEFINITELY
 
Fields inherited from class org.quartz.Trigger
INSTRUCTION_DELETE_TRIGGER, INSTRUCTION_NOOP, INSTRUCTION_RE_EXECUTE_JOB, INSTRUCTION_SET_ALL_JOB_TRIGGERS_COMPLETE, INSTRUCTION_SET_ALL_JOB_TRIGGERS_ERROR, INSTRUCTION_SET_TRIGGER_COMPLETE, INSTRUCTION_SET_TRIGGER_ERROR, MISFIRE_INSTRUCTION_SMART_POLICY, STATE_BLOCKED, STATE_COMPLETE, STATE_ERROR, STATE_NONE, STATE_NORMAL, STATE_PAUSED
 
Constructor Summary
InstanceTerminatorTrigger(uk.ac.rdg.resc.jstyx.gridservice.server.StyxGridServiceInstance instance, java.lang.String jobID, java.util.Date terminationTime)
          Creates a new instance of InstanceTerminator.
 
Method Summary
 uk.ac.rdg.resc.jstyx.gridservice.server.StyxGridServiceInstance getSGSInstance()
          Gets the SGS instance that is associated with this Trigger
 
Methods inherited from class org.quartz.SimpleTrigger
computeFirstFireTime, computeNumTimesFiredBetween, executionComplete, getEndTime, getFinalFireTime, getFireTimeAfter, getFireTimeBefore, getNextFireTime, getPreviousFireTime, getRepeatCount, getRepeatInterval, getStartTime, getTimesTriggered, main, mayFireAgain, setEndTime, setNextFireTime, setPreviousFireTime, setRepeatCount, setRepeatInterval, setStartTime, setTimesTriggered, triggered, updateAfterMisfire, updateWithNewCalendar, validate, validateMisfireInstruction
 
Methods inherited from class org.quartz.Trigger
addTriggerListener, clone, compareTo, equals, getCalendarName, getDescription, getFireInstanceId, getFullJobName, getFullName, getGroup, getJobDataMap, getJobGroup, getJobName, getMisfireInstruction, getName, getTriggerListenerNames, hashCode, isVolatile, removeTriggerListener, setCalendarName, setDescription, setFireInstanceId, setGroup, setJobDataMap, setJobGroup, setJobName, setMisfireInstruction, setName, setVolatility, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceTerminatorTrigger

public InstanceTerminatorTrigger(uk.ac.rdg.resc.jstyx.gridservice.server.StyxGridServiceInstance instance,
                                 java.lang.String jobID,
                                 java.util.Date terminationTime)
Creates a new instance of InstanceTerminator.

Parameters:
instance - The SGS instance to terminate
jobID - A unique ID for the job
terminationTime - The time at which the instance will be terminated
Method Detail

getSGSInstance

public uk.ac.rdg.resc.jstyx.gridservice.server.StyxGridServiceInstance getSGSInstance()
Gets the SGS instance that is associated with this Trigger



Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.