public class MesosScheduler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
LOG |
Constructor and Description |
---|
MesosScheduler(MesosController controller,
Config mconfig,
JobAPI.Job myJob) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String[] nodes,
Protos.Offer offer) |
void |
disconnected(SchedulerDriver schedulerDriver) |
void |
error(SchedulerDriver schedulerDriver,
java.lang.String s) |
void |
executorLost(SchedulerDriver schedulerDriver,
Protos.ExecutorID executorID,
Protos.SlaveID slaveID,
int i) |
void |
frameworkMessage(SchedulerDriver schedulerDriver,
Protos.ExecutorID executorID,
Protos.SlaveID slaveID,
byte[] bytes) |
JobAPI.ComputeResource |
getResource(JobAPI.Job myJob,
int rIndex) |
void |
offerRescinded(SchedulerDriver schedulerDriver,
Protos.OfferID offerID) |
void |
registered(SchedulerDriver schedulerDriver,
Protos.FrameworkID frameworkID,
Protos.MasterInfo masterInfo) |
void |
reregistered(SchedulerDriver schedulerDriver,
Protos.MasterInfo masterInfo) |
void |
resourceOffers(SchedulerDriver schedulerDriver,
java.util.List<Protos.Offer> offers) |
void |
slaveLost(SchedulerDriver schedulerDriver,
Protos.SlaveID slaveID) |
void |
statusUpdate(SchedulerDriver schedulerDriver,
Protos.TaskStatus taskStatus) |
public MesosScheduler(MesosController controller, Config mconfig, JobAPI.Job myJob)
public void registered(SchedulerDriver schedulerDriver, Protos.FrameworkID frameworkID, Protos.MasterInfo masterInfo)
public void reregistered(SchedulerDriver schedulerDriver, Protos.MasterInfo masterInfo)
public boolean contains(java.lang.String[] nodes, Protos.Offer offer)
public JobAPI.ComputeResource getResource(JobAPI.Job myJob, int rIndex)
public void resourceOffers(SchedulerDriver schedulerDriver, java.util.List<Protos.Offer> offers)
public void offerRescinded(SchedulerDriver schedulerDriver, Protos.OfferID offerID)
public void statusUpdate(SchedulerDriver schedulerDriver, Protos.TaskStatus taskStatus)
public void frameworkMessage(SchedulerDriver schedulerDriver, Protos.ExecutorID executorID, Protos.SlaveID slaveID, byte[] bytes)
public void disconnected(SchedulerDriver schedulerDriver)
public void slaveLost(SchedulerDriver schedulerDriver, Protos.SlaveID slaveID)
public void executorLost(SchedulerDriver schedulerDriver, Protos.ExecutorID executorID, Protos.SlaveID slaveID, int i)
public void error(SchedulerDriver schedulerDriver, java.lang.String s)