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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
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 |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getNextJobTime, getResources, hashCode, isRepeating, mustKnowFirstTime, scheduleString, scheduleString, toString, toString
public RelativeSchedule(java.lang.String pValue, java.util.Locale pLocale) throws atg.nucleus.PropertyValueParseException
RelativeSchedule
instance from the String PValue passed inpValue
- a String
valuepLocale
- a Locale
valueatg.nucleus.PropertyValueParseException
- if the string can not be parsedpublic RelativeSchedule(long pDelay)
protected void initUnitOfTimeValues(java.util.ResourceBundle pBundle)
ResourceBundle
- the locale-specific bundle to useprotected int getUnitOfTimeIndex(java.lang.String pStr)
String
- the unit of time