Scheduler
Modules
The scheduler service consists of the following modules:
scheduler-api
An API module defining the core scheduler functions and properties.scheduler-impl
The default implementation of the scheduler service as an OSGi service.scheduler-remote
The remote implementation of the scheduler service as an OSGi service.
Database
The scheduler service stores snapshots using the AssetManager and additionally uses two tables:
oc_scheduled_extended_event
Manages scheduled event meta data such as start date, end date, capture agent ID, and so on.oc_scheduled_last_modified
Manages the last recording modification date of a status change on an event sent by the capture agent.
API
Here is a sample to create a single event with the scheduler Java API.
public void createEvent(Event event) {
schedulerService.addEvent(event.getStart(),
event.getEnd(),
event.getAgentId(),
event.getUsers(),
event.getMediaPackage(),
event.getWfProperties(),
event.getCaMetadata(),
event.getSource(),
"organization-xyz-script";
}