job scheduler works with run once and run periodic schedules. Stop logic is not fully thought through.
Dependents: JobSchedulerDemo Borsch
ISchedule Class Reference
Declares concept of the schedule. More...
#include <scheduler.h>
Inherited by RunOnceSchedule, and RunPeriodicSchedule.
Public Member Functions | |
virtual time_t | NextRunTime (time_t from)=0 |
NextRunTime returns next run time or zero if never. | |
virtual int | ScheduleType ()=0 |
Returns unique number to identify each schedule type without enabling C++ RTTI. |
Detailed Description
Declares concept of the schedule.
For example, run once, run periodically, run at the top of the hour, never run, run weekly, monthly, etc.
Definition at line 19 of file scheduler.h.
Member Function Documentation
virtual time_t NextRunTime | ( | time_t | from ) | [pure virtual] |
NextRunTime returns next run time or zero if never.
- Parameters:
-
from reflects current time. Test cases may manipulate the value of from to test algorithms.
If return time is less than from, then scheduler will run the job ASAP.
If return time is more than from, then scheduler will run the job in the future calculated as (return_value - from).
virtual int ScheduleType | ( | ) | [pure virtual] |
Returns unique number to identify each schedule type without enabling C++ RTTI.
Generated on Tue Jul 12 2022 23:24:04 by 1.7.2