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);
}
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();
}
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);
}
Aggregations