job scheduler works with run once and run periodic schedules. Stop logic is not fully thought through.

Dependencies:   LinkedList

Dependents:   JobSchedulerDemo Borsch

Embed: (wiki syntax)

« Back to documentation index

JobService Class Reference

JobService Class Reference

JobService connects job type ID to job function. More...

#include <jobService.h>

Public Member Functions

Error Register (int jobTypeID, jobFunc *job, void *context)
 Register associates jobTypeID with job and stores association.
JobTypeGetJob (int jobTypeID)
 GetJob returns job function based on jobTypeID.

Detailed Description

JobService connects job type ID to job function.

Definition at line 39 of file jobService.h.


Member Function Documentation

JobType * GetJob ( int  jobTypeID )

GetJob returns job function based on jobTypeID.

Returns:
NULL if job is not found.

Definition at line 43 of file jobService.cpp.

Error Register ( int  jobTypeID,
jobFunc *  job,
void *  context 
)

Register associates jobTypeID with job and stores association.

Returns:
Error if failed to register.

Definition at line 32 of file jobService.cpp.