1.2.13 OcaTaskScheduler
Class Hierarchy:
OcaRoot : OcaAgent : OcaTaskScheduler
-
class OcaTaskScheduler : OcaAgent
Optional scheduler for scheduling tasks to run programs and commandsets in the future.
Properties:
-
static const OcaClassID ClassID = "1.2.13"
Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the OcaRoot property.
This property has id
1.1
.
-
static const OcaClassVersionNumber ClassVersion = 1
Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the OcaRoot property.
This property has id
1.2
.
-
OcaList<OcaJobQueueItem> JobQueue
List of queued jobs. Items are added to the queue by the AddJob() method, and removed from the queue when they have run to completion, or by the DeleteJob() or ClearJobQueue() methods.
This property has id
3.3
.
-
OcaTaskSchedulerState State
See OcaTaskSchedulerState for state values and their semantics.
This property has id
3.1
.
-
OcaList<OcaONo> TaskAgents
List of ONos of OcaTaskAgent objects. Readonly; updated automatically when OcaTaskAgent objects are created or deleted.
This property has id
3.2
.
Properties inherited from 1.2 OcaAgent:
Methods:
-
OcaStatus GetState(OcaTaskSchedulerState &State)
Gets the scheduler’s state.
This method has id
3.5
.State: Output parameter.
-
OcaStatus GetTaskAgents(OcaList<OcaONo> &ONos)
Gets the list of all OcaTaskAgent ONos.
This method has id
3.6
.ONos: Output parameter.
-
OcaStatus GetJobQueue(OcaList<OcaJobQueueItem> &Queue)
Gets the job queue.
This method has id
3.7
.Queue: Output parameter.
-
OcaStatus GetJob(OcaID32 ID, OcaJobQueueItem &Item)
Gets a jobqueue item, given its ID.
This method has id
3.8
.
-
OcaStatus SetJob(OcaID32 ID, OcaJobQueueItem Item)
Replaces a job queue item, given its ID. If given ID references a nonexistent job queue item, method shall return status value ParameterOutOfRange.
This method has id
3.9
.
-
OcaStatus AddJob(OcaJobQueueItem Item, OcaID32 &ID)
Adds a job queue item, returns its ID.
This method has id
3.10
.
-
OcaStatus DeleteJob(OcaID32 ID)
Deletes a job queue item given its ID.
This method has id
3.11
.ID: Input parameter.
Methods inherited from 1.2 OcaAgent:
Events:
-
void JobDisposed(OcaJobDisposedEventData EventData)
Event raised when a job queue item is removed from the queue, either because it has fulfilled its purpose or because it has been explicitly deleted by the DeleteJob() or ClearJobQueue() method.
This event has id
3.1
.
-
static const OcaClassID ClassID = "1.2.13"