atg.service.scheduler
Class RelativeSchedule

java.lang.Object
  extended by atg.service.scheduler.AbsoluteSchedule
      extended by atg.service.scheduler.RelativeSchedule
All Implemented Interfaces:
Schedule, java.io.Serializable

public class RelativeSchedule
extends AbsoluteSchedule

This implementation of Schedule represents a Schedule for an job that occurs once, after a specified delay from the current time.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
RelativeSchedule(long pDelay)
          Constructs a new RelativeSchedule for a job that will occur after the specified delay (in msec) from the current time.
RelativeSchedule(java.lang.String pValue, java.util.Locale pLocale)
          Creates a new RelativeSchedule instance from the String PValue passed in
 
Method Summary
protected  int getUnitOfTimeIndex(java.lang.String pStr)
          Returns the index into the units of time arrays for the specified unit of time.
protected  void initUnitOfTimeValues(java.util.ResourceBundle pBundle)
          Initialize the arrays holding the units of time and their conversion factors.
 
Methods inherited from class atg.service.scheduler.AbsoluteSchedule
equals, getNextJobTime, getResources, hashCode, isRepeating, mustKnowFirstTime, scheduleString, scheduleString, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

RelativeSchedule

public RelativeSchedule(java.lang.String pValue,
                        java.util.Locale pLocale)
                 throws atg.nucleus.PropertyValueParseException
Creates a new RelativeSchedule instance from the String PValue passed in

Parameters:
pValue - a String value
pLocale - a Locale value
Throws:
atg.nucleus.PropertyValueParseException - if the string can not be parsed

RelativeSchedule

public RelativeSchedule(long pDelay)
Constructs a new RelativeSchedule for a job that will occur after the specified delay (in msec) from the current time.

Method Detail

initUnitOfTimeValues

protected void initUnitOfTimeValues(java.util.ResourceBundle pBundle)
Initialize the arrays holding the units of time and their conversion factors.

Parameters:
ResourceBundle - the locale-specific bundle to use

getUnitOfTimeIndex

protected int getUnitOfTimeIndex(java.lang.String pStr)
Returns the index into the units of time arrays for the specified unit of time.

Parameters:
String - the unit of time
Returns:
int the index into the arrays for the unit of time