Java Code Examples for org.apache.mesos.v1.Protos#ExecutorID

The following examples show how to use org.apache.mesos.v1.Protos#ExecutorID . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SingularityMesosFrameworkMessageHandler.java    From Singularity with Apache License 2.0 6 votes vote down vote up
public void handleMessage(
  Protos.ExecutorID executorId,
  Protos.AgentID slaveId,
  byte[] data
) {
  SingularityTaskShellCommandUpdate shellUpdate = null;
  try {
    shellUpdate = commandUpdateTranscoder.fromBytes(data);

    SingularityCreateResult saved = taskManager.saveTaskShellCommandUpdate(shellUpdate);

    LOG.debug("Saved {} with result {}", shellUpdate, saved);
  } catch (SingularityTranscoderException ste) {
    LOG.warn("Framework message {} not a commandUpdate", new String(data, UTF_8));
  } catch (Exception e) {
    LOG.error("While processing framework message {}", shellUpdate, e);
  }
}
 
Example 2
Source File: ProtosConversion.java    From attic-aurora with Apache License 2.0 4 votes vote down vote up
public static Protos.ExecutorID convert(org.apache.mesos.Protos.ExecutorID s) {
  return convert(s, Protos.ExecutorID.newBuilder());
}
 
Example 3
Source File: ProtosConversion.java    From attic-aurora with Apache License 2.0 4 votes vote down vote up
public static org.apache.mesos.Protos.ExecutorID convert(Protos.ExecutorID f) {
  return convert(f, org.apache.mesos.Protos.ExecutorID.newBuilder());
}