| java.lang.Object de.webman.util.scheduler.SchedulerMgr
SchedulerMgr | public class SchedulerMgr implements Manager(Code) | | The central scheduler manager, implementing the
de.webman.util.Manager protocol.
How to use ** TODO **
Format of the xml-config file:
author: Gregor Klinke version: $Revision: 1.2 $ |
Method Summary | |
void | checkNext() | long | getSleepTime() | public void | registerFrequentService(String _id, Date _start_at, Date _stop_at, long _frequency, long _delay, SchedulerServiceFactory _sfact) registers a scheduler service, to be called on a regular base. | public void | registerOneTimeService(String _id, Date _start_at, SchedulerServiceFactory _sfact) registers a scheduler service, to be called excatly once, sometime
in the future. |
MILLISECONDS_PER_DAY | final public static int MILLISECONDS_PER_DAY(Code) | | constants for time calculations (day)
|
MILLISECONDS_PER_HOUR | final public static int MILLISECONDS_PER_HOUR(Code) | | constants for time calculations (hour)
|
MILLISECONDS_PER_MIN | final public static int MILLISECONDS_PER_MIN(Code) | | constants for time calculations (min)
|
MILLISECONDS_PER_SEC | final public static int MILLISECONDS_PER_SEC(Code) | | constants for time calculations (sec)
|
checkNext | void checkNext()(Code) | | checks the next scheduler in the scheduler list
|
getSleepTime | long getSleepTime()(Code) | | returns the current sleep time for the timer thread
|
registerFrequentService | public void registerFrequentService(String _id, Date _start_at, Date _stop_at, long _frequency, long _delay, SchedulerServiceFactory _sfact)(Code) | | registers a scheduler service, to be called on a regular base. This
frequent repetition is characteristized by a start and stop point in
time, a start off delay and a repetition frequency.
Parameters: _id - a descriptive id of the service Parameters: _start_at - start point Parameters: _stop_at - stop point, if null stops never Parameters: _frequency - the repetition frequency in milliseconds Parameters: _delay - the start off delay in milliseconds, relative to _start_at Parameters: _sfact - the scheduler services factory class |
registerOneTimeService | public void registerOneTimeService(String _id, Date _start_at, SchedulerServiceFactory _sfact)(Code) | | registers a scheduler service, to be called excatly once, sometime
in the future.
Parameters: _id - a descriptive id of the service Parameters: _start_at - the point in time to start the service Parameters: _sfact - the scheduler services factory class |
|
|