initial state
SchedulerDriver
Seq[ Process[ Task, CustomMessage ] ] Processes that generate custom messages to trigger
state mutation events in the manager. These need to managed my SchedulerStateManager
implementation in the processCustomMessage(msg: CustomMessage)
function.
graceful shutdown
graceful shutdown
SchedulerDriver
see SchedulerDriver.stop docs
Thread safe implementation of org.apache.mesos.Scheduler based on scalaz streams. Every call to the Scheduler interface is enqueued and process one at a time.
User is required to implement and provide oncue.mesos.SchedulerStateManager. Users are expected to implement CustomMessage's to trigger state mutation events in their state managers. CustomMessage's can be passed into processMessage by providing scalaz.stream.Processes in the
customEvents
param passed toinit
function.This class also implements reconciliation algorithm as an additional message in the queue. User can pass Scheduler.reconcileProcess to
init
function to trigger reconciliation in periodic intervals or define custom reconciliation triggers. User must also provide list of tasks that it expects to be running, all offers will be declined until state for all tasks has been received.