com.silverpeas.scheduler.simple
Class SchedulerMethodJob

java.lang.Object
  extended by com.silverpeas.scheduler.simple.SchedulerJob
      extended by com.silverpeas.scheduler.simple.SchedulerMethodJob
All Implemented Interfaces:
ScheduledJob, Runnable
Direct Known Subclasses:
SchedulerMethodJobMinute

Deprecated.

@Deprecated
public class SchedulerMethodJob
extends SchedulerJob

This class extends the class 'SchedulerJob' for the functionality of a scheduled execution of a class method.


Field Summary
 
Fields inherited from class com.silverpeas.scheduler.simple.SchedulerJob
logDateFormat
 
Constructor Summary
protected SchedulerMethodJob(SimpleScheduler theJobController, SchedulerEventListener theJobOwner, String theJobName)
          Deprecated. The constructor has proteceted access, because the generation of jobs should be done in a central way by the class 'SimpleScheduler'
 
Method Summary
protected  void execute(Date theExecutionDate)
          Deprecated. This method implements the abstract method of the base class.
protected  void setExecutionParameter(Object aMethodOwner, String aExecutionMethodName)
          Deprecated. This method sets the execution parameter.
 
Methods inherited from class com.silverpeas.scheduler.simple.SchedulerJob
execute, getJobName, getMillisecondsOfCalendar, getName, getNexExecutionTimeInMillis, getNextExecutionTime, getNextTimeStamp, getOwner, getSchedulerEventListener, getTrigger, initTimeStamp, readNextTimeStamp, run, setSchedulingParameter, setSchedulingParameter, setTrigger, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerMethodJob

protected SchedulerMethodJob(SimpleScheduler theJobController,
                             SchedulerEventListener theJobOwner,
                             String theJobName)
                      throws SchedulerException
Deprecated. 
The constructor has proteceted access, because the generation of jobs should be done in a central way by the class 'SimpleScheduler'

Parameters:
aController - The controller, that controls all job executions
aOwner - The owner of the job
aJobName - The name of the job
aLogBaseFile - The log file for the job
Throws:
SchedulerException
Method Detail

setExecutionParameter

protected void setExecutionParameter(Object aMethodOwner,
                                     String aExecutionMethodName)
                              throws SchedulerException
Deprecated. 
This method sets the execution parameter. The given execution method have to handle two parameter (PrintStream, Date)

Parameters:
aMethodOwner - The owner object of the execution method
aExecutionMethodName - The name of a method for the execution logic (Arguments must be PrintStream and Date)
Throws:
SchedulerException

execute

protected void execute(Date theExecutionDate)
                throws SchedulerException
Deprecated. 
This method implements the abstract method of the base class. It only routes the parameter the the stored execution method.

Specified by:
execute in class SchedulerJob
Parameters:
log - A PrintStream for text writings in the log file for this job
theExecutionDate - The date of the execution
Throws:
SchedulerException


Copyright © 2016 Silverpeas. All Rights Reserved.