com.silverpeas.scheduler.simple
Class SchedulerMethodJob
java.lang.Object
com.silverpeas.scheduler.simple.SchedulerJob
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.
|
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 |
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 executionsaOwner - The owner of the jobaJobName - The name of the jobaLogBaseFile - The log file for the job
- Throws:
SchedulerException
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 methodaExecutionMethodName - 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 jobtheExecutionDate - The date of the execution
- Throws:
SchedulerException
Copyright © 2016 Silverpeas. All Rights Reserved.