org.openeai.afa
Class ScheduleRuntime

java.lang.Object
  extended by org.openeai.OpenEaiObject
      extended by org.openeai.afa.ScheduleRuntime

public class ScheduleRuntime
extends OpenEaiObject

This is a wrapper class that helps a Schedule determine if it should execute the commands that Schedule manages. Basically, by day and time(s). Each Schedule that gets configured has a list of these as specified in the application's deployment document.

Version:
3.0 - 28 January 2003
Author:
Tod Jackson (tod@openeai.org), Steve Wheat (steve@openeai.org)

Field Summary
 
Fields inherited from class org.openeai.OpenEaiObject
logger
 
Constructor Summary
ScheduleRuntime(org.jdom.Element eConfig)
          Constructor
 
Method Summary
 java.lang.String getDay()
          Returns the day of the week that the Schedule should be executed.
 java.util.List getTimes()
          Returns a list of TimeOfDay objects indicating when during a particular day the Schedule should run.
 void setDay(java.lang.String day)
          Sets the day of the week that the Schedule should be executed.
 
Methods inherited from class org.openeai.OpenEaiObject
getAppName, getDebug, getFromAddr, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleRuntime

public ScheduleRuntime(org.jdom.Element eConfig)
Constructor

Method Detail

setDay

public final void setDay(java.lang.String day)
Sets the day of the week that the Schedule should be executed. Set based on information found in the Config document.

Parameters:
day - String the day of the week the schedule should execute.

getDay

public final java.lang.String getDay()
Returns the day of the week that the Schedule should be executed. Set based on information found in the Config document.

Returns:
String the day of the week the schedule should execute.

getTimes

public final java.util.List getTimes()
Returns a list of TimeOfDay objects indicating when during a particular day the Schedule should run.

Returns:
ArrayList of TimeOfDay objects.


Copyright © 2002,2003 OpenEAI Software Foundation