| |
|
| java.lang.Object org.openharmonise.rm.tasks.Scheduler
Scheduler | public class Scheduler implements Runnable(Code) | | Handles the running of scheduled tasks.
author: Michael Bell version: $Revision: 1.2 $ |
PNAME_SCHEDULE_PERIOD | final static String PNAME_SCHEDULE_PERIOD(Code) | | |
clearExceptionHistory | public void clearExceptionHistory()(Code) | | Clears list of exceptions thrown.
|
getCounterValue | public int getCounterValue()(Code) | | Returns number of iterations complete so far
number of interations |
getStatusReport | public String getStatusReport(boolean bVerbose)(Code) | | Returns Report on status of Scheduler, including list of exceptions thrown.
Parameters: bVerbose - Has report to be verbose Status report |
instance | public static synchronized Scheduler instance(AbstractDataStoreInterface dbinterf)(Code) | | Returns an instance of scheduler. Fits singleton design pattern.
Parameters: dbinterf - Interface to database instance of scheduler class |
isRunning | public boolean isRunning()(Code) | | Test whether scheduler is running or not.
is scheduler running |
run | public void run()(Code) | | Run method. Executes pending tasks and updates next run time for each task.
|
setPeriod | public void setPeriod(int nSeconds)(Code) | | |
stopRunning | public void stopRunning()(Code) | | Sets m_bKeepRunning to stop thread running.
|
|
|
|