NAME

Mesos::SchedulerDriver - perl interface to MesosSchedulerDriver

ATTRIBUTES

credential

A Mesos::Credential message

dispatcher

Either a Mesos::Dispatcher instance, or the short name of a dispatcher to instantiate(such as AnyEvent). The short name cannot be used if the dispatcher has required arguments.

Defaults to AnyEvent

framework

A Mesos::FrameworkInfo message

master

The address of a Mesos master

scheduler

A Mesos::Scheduler instance

METHODS

new(%args)
my $driver = Mesos::SchedulerDriver(%args)

    %args
        REQUIRED framework
        REQUIRED scheduler
        REQUIRED master
        OPTIONAL credential
        OPTIONAL dispatcher
start()
stop($failover)
abort()
join()
run()
requestResources($requests)
launchTasks($offerIds, $tasks, $filters)
launchTask($offerId, $tasks, $filters)
killTask($taskId)
declineOffer($offerId, $filters)
reviveOffers()
sendFrameworkMessage($executorId, $slaveId, $data)
reconcileTasks($statuses)