public class SchedulerProxy extends Object implements org.apache.mesos.Scheduler
In order to preserve actor concurrency safety, this class simply sends corresponding messages to the Mesos resource master actor.
See https://mesos.apache.org/api/latest/java/org/apache/mesos/Scheduler.html
Constructor and Description |
---|
SchedulerProxy(akka.actor.ActorRef mesosActor) |
Modifier and Type | Method and Description |
---|---|
void |
disconnected(org.apache.mesos.SchedulerDriver driver) |
void |
error(org.apache.mesos.SchedulerDriver driver,
String message) |
void |
executorLost(org.apache.mesos.SchedulerDriver driver,
org.apache.mesos.Protos.ExecutorID executorId,
org.apache.mesos.Protos.SlaveID slaveId,
int status) |
void |
frameworkMessage(org.apache.mesos.SchedulerDriver driver,
org.apache.mesos.Protos.ExecutorID executorId,
org.apache.mesos.Protos.SlaveID slaveId,
byte[] data) |
void |
offerRescinded(org.apache.mesos.SchedulerDriver driver,
org.apache.mesos.Protos.OfferID offerId) |
void |
registered(org.apache.mesos.SchedulerDriver driver,
org.apache.mesos.Protos.FrameworkID frameworkId,
org.apache.mesos.Protos.MasterInfo masterInfo) |
void |
reregistered(org.apache.mesos.SchedulerDriver driver,
org.apache.mesos.Protos.MasterInfo masterInfo) |
void |
resourceOffers(org.apache.mesos.SchedulerDriver driver,
List<org.apache.mesos.Protos.Offer> offers) |
void |
slaveLost(org.apache.mesos.SchedulerDriver driver,
org.apache.mesos.Protos.SlaveID slaveId) |
void |
statusUpdate(org.apache.mesos.SchedulerDriver driver,
org.apache.mesos.Protos.TaskStatus status) |
public void registered(org.apache.mesos.SchedulerDriver driver, org.apache.mesos.Protos.FrameworkID frameworkId, org.apache.mesos.Protos.MasterInfo masterInfo)
registered
in interface org.apache.mesos.Scheduler
public void reregistered(org.apache.mesos.SchedulerDriver driver, org.apache.mesos.Protos.MasterInfo masterInfo)
reregistered
in interface org.apache.mesos.Scheduler
public void disconnected(org.apache.mesos.SchedulerDriver driver)
disconnected
in interface org.apache.mesos.Scheduler
public void resourceOffers(org.apache.mesos.SchedulerDriver driver, List<org.apache.mesos.Protos.Offer> offers)
resourceOffers
in interface org.apache.mesos.Scheduler
public void offerRescinded(org.apache.mesos.SchedulerDriver driver, org.apache.mesos.Protos.OfferID offerId)
offerRescinded
in interface org.apache.mesos.Scheduler
public void statusUpdate(org.apache.mesos.SchedulerDriver driver, org.apache.mesos.Protos.TaskStatus status)
statusUpdate
in interface org.apache.mesos.Scheduler
public void frameworkMessage(org.apache.mesos.SchedulerDriver driver, org.apache.mesos.Protos.ExecutorID executorId, org.apache.mesos.Protos.SlaveID slaveId, byte[] data)
frameworkMessage
in interface org.apache.mesos.Scheduler
public void slaveLost(org.apache.mesos.SchedulerDriver driver, org.apache.mesos.Protos.SlaveID slaveId)
slaveLost
in interface org.apache.mesos.Scheduler
public void executorLost(org.apache.mesos.SchedulerDriver driver, org.apache.mesos.Protos.ExecutorID executorId, org.apache.mesos.Protos.SlaveID slaveId, int status)
executorLost
in interface org.apache.mesos.Scheduler
public void error(org.apache.mesos.SchedulerDriver driver, String message)
error
in interface org.apache.mesos.Scheduler
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.