Scheduler

Modules

The scheduler service consists of the following modules:

Database

The scheduler service stores snapshots using the AssetManager and additionally uses two tables:

Conflict Handler

The conflict handler implements a strategy to resolve conflicts by either using the new or the old schedule according the configuration.

Conflict Notifier

There are two implementations of a conflict notifier available and activated by default.

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";
  }