Search in sources :

Example 6 with ExecutorID

use of org.apache.mesos.v1.Protos.ExecutorID in project Singularity by HubSpot.

the class SingularityMesosSchedulerImpl method message.

@Override
public void message(Message message) {
    ExecutorID executorID = message.getExecutorId();
    AgentID slaveId = message.getAgentId();
    byte[] data = message.getData().toByteArray();
    LOG.info("Framework message from executor {} on slave {} with {} bytes of data", executorID, slaveId, data.length);
    messageHandler.handleMessage(executorID, slaveId, data);
}
Also used : ExecutorID(org.apache.mesos.v1.Protos.ExecutorID) AgentID(org.apache.mesos.v1.Protos.AgentID)

Aggregations

MesosClientBuilder (com.mesosphere.mesos.rx.java.MesosClientBuilder)3 ProtobufMesosClientBuilder (com.mesosphere.mesos.rx.java.protobuf.ProtobufMesosClientBuilder)3 Builder (org.apache.mesos.v1.scheduler.Protos.Call.Builder)3 SingularityTask (com.hubspot.singularity.SingularityTask)2 AgentID (org.apache.mesos.v1.Protos.AgentID)2 ExecutorID (org.apache.mesos.v1.Protos.ExecutorID)2 SingularityPendingTask (com.hubspot.singularity.SingularityPendingTask)1 SingularityTaskId (com.hubspot.singularity.SingularityTaskId)1 SingularityTaskRequest (com.hubspot.singularity.SingularityTaskRequest)1 SingularityTaskShellCommandRequest (com.hubspot.singularity.SingularityTaskShellCommandRequest)1 Offer (org.apache.mesos.v1.Protos.Offer)1 TaskID (org.apache.mesos.v1.Protos.TaskID)1 TaskInfo (org.apache.mesos.v1.Protos.TaskInfo)1