Search in sources :

Example 1 with ExecutorID

use of org.apache.mesos.Protos.ExecutorID in project incubator-myriad by apache.

the class FrameworkMessageEventHandler method onEvent.

@Override
public void onEvent(FrameworkMessageEvent event, long sequence, boolean endOfBatch) throws Exception {
    ExecutorID executorId = event.getExecutorId();
    SlaveID slaveId = event.getSlaveId();
    LOGGER.info("Received framework message from executor {} of slave {}", executorId, slaveId);
}
Also used : ExecutorID(org.apache.mesos.Protos.ExecutorID) SlaveID(org.apache.mesos.Protos.SlaveID)

Example 2 with ExecutorID

use of org.apache.mesos.Protos.ExecutorID in project incubator-myriad by apache.

the class ByteBufferSupportTest method getExecutorInfo.

private ExecutorInfo getExecutorInfo() {
    FrameworkID id = Protos.FrameworkID.newBuilder().setValue("framework1").build();
    ExecutorID eid = Protos.ExecutorID.newBuilder().setValue("executor1").build();
    CommandInfo cm = Protos.CommandInfo.newBuilder().setValue("command").build();
    return ExecutorInfo.newBuilder().setFrameworkId(id).setExecutorId(eid).setCommand(cm).build();
}
Also used : ExecutorID(org.apache.mesos.Protos.ExecutorID) CommandInfo(org.apache.mesos.Protos.CommandInfo) FrameworkID(org.apache.mesos.Protos.FrameworkID)

Example 3 with ExecutorID

use of org.apache.mesos.Protos.ExecutorID in project incubator-myriad by apache.

the class ExecutorLostEventHandler method onEvent.

@Override
public void onEvent(ExecutorLostEvent event, long sequence, boolean endOfBatch) throws Exception {
    ExecutorID executorId = event.getExecutorId();
    SlaveID slaveId = event.getSlaveId();
    int exitStatus = event.getExitStatus();
    LOGGER.info("Executor {} of slave {} lost with exit status: {}", executorId, slaveId, exitStatus);
}
Also used : ExecutorID(org.apache.mesos.Protos.ExecutorID) SlaveID(org.apache.mesos.Protos.SlaveID)

Aggregations

ExecutorID (org.apache.mesos.Protos.ExecutorID)3 SlaveID (org.apache.mesos.Protos.SlaveID)2 CommandInfo (org.apache.mesos.Protos.CommandInfo)1 FrameworkID (org.apache.mesos.Protos.FrameworkID)1