atg.service.util
Class SchedulableDate

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.service.util.CurrentDate
              extended by atg.service.util.SchedulableDate
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, Schedulable, java.io.Serializable, java.util.EventListener

public class SchedulableDate
extends CurrentDate
implements Schedulable

This service is an extension of the CurrentDate service, but adds the capability of having it's time fixed on a periodic basis through the scheduler.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.service.util.CurrentDate
MONTH_NAMES, SHORT_MONTH_NAMES, SHORT_WEEKDAY_NAMES, WEEKDAY_NAMES
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
SchedulableDate()
          Constructs an instanceof SchedulableDate
 
Method Summary
 void doStartService()
          Setup the schedule to periodically set the time
 void doStopService()
          Stops the schedule for
 Scheduler getScheduler()
          Returns property Scheduler
 java.lang.String getUpdateJobDescription()
          Returns property UpdateJobDescription
 java.lang.String getUpdateJobName()
          Returns property UpdateJobName
 Schedule getUpdateSchedule()
          Returns property UpdateSchedule
 void performScheduledTask(Scheduler pScheduler, ScheduledJob pJob)
          Reload the global promotions
 void setScheduler(Scheduler pScheduler)
          Sets property Scheduler
 void setUpdateJobDescription(java.lang.String pUpdateJobDescription)
          Sets property UpdateJobDescription
 void setUpdateJobName(java.lang.String pUpdateJobName)
          Sets property UpdateJobName
 void setUpdateSchedule(Schedule pUpdateSchedule)
          Sets property UpdateSchedule
 
Methods inherited from class atg.service.util.CurrentDate
getDate, getDateAsDate, getDayOfWeek, getDayOfWeekInMonth, getDayOfWeekName, getHour, getHourAsDate, getMinute, getMinuteAsDate, getMonth, getMonthName, getNextDate, getNextHour, getNextMinute, getNextSecond, getSecond, getSecondAsDate, getShortDayOfWeekName, getShortMonthName, getTime, getTimeAsDate, getTimeAsTimestamp, getWeekOfMonth, getYear, isMinimizeDateConstruction, setMinimizeDateConstruction, setTime, setTimeAsDate
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

SchedulableDate

public SchedulableDate()
Constructs an instanceof SchedulableDate

Method Detail

setScheduler

public void setScheduler(Scheduler pScheduler)
Sets property Scheduler


getScheduler

public Scheduler getScheduler()
Returns property Scheduler


setUpdateSchedule

public void setUpdateSchedule(Schedule pUpdateSchedule)
Sets property UpdateSchedule


getUpdateSchedule

public Schedule getUpdateSchedule()
Returns property UpdateSchedule


setUpdateJobName

public void setUpdateJobName(java.lang.String pUpdateJobName)
Sets property UpdateJobName


getUpdateJobName

public java.lang.String getUpdateJobName()
Returns property UpdateJobName


setUpdateJobDescription

public void setUpdateJobDescription(java.lang.String pUpdateJobDescription)
Sets property UpdateJobDescription


getUpdateJobDescription

public java.lang.String getUpdateJobDescription()
Returns property UpdateJobDescription


doStartService

public void doStartService()
                    throws ServiceException
Setup the schedule to periodically set the time

Overrides:
doStartService in class GenericService
Throws:
ServiceException - if the Service had a problem starting up

doStopService

public void doStopService()
                   throws ServiceException
Stops the schedule for

Overrides:
doStopService in class GenericService
Throws:
ServiceException - if an error occurred during the operation

performScheduledTask

public void performScheduledTask(Scheduler pScheduler,
                                 ScheduledJob pJob)
Reload the global promotions

Specified by:
performScheduledTask in interface Schedulable
Parameters:
pScheduler - calling the job
pJob - the ScheduledJob