return update( org.apache.mesos.v1.Protos.AgentID.newBuilder().setValue(agentId).build(), org.apache.mesos.v1.Protos.ExecutorID.newBuilder().setValue(executorId).build(), org.apache.mesos.v1.Protos.TaskID.newBuilder().setValue(taskId).build(), state,
/** * Utility method to more succinctly construct an {@link Protos.Event Event} of type * {@link Protos.Event.Type#MESSAGE MESSAGE}. * * @param agentId The {@link org.apache.mesos.v1.Protos.AgentID#getValue() value} of the * {@link Protos.Event.Message#getAgentId() agentId} to be set on the * {@link Protos.Event.Message Message}. * @param executorId The {@link org.apache.mesos.v1.Protos.ExecutorID#getValue() value} of the * {@link Protos.Event.Message#getExecutorId() executorId} to be set on the * {@link Protos.Event.Message Message}. * @param data The {@link Protos.Event.Message#getData() data} to be set on the * {@link Protos.Event.Message Message}. * @return A {@link Protos.Call Call} with a configured {@link Protos.Call.Acknowledge Acknowledge}. */ @NotNull public static Protos.Event message( @NotNull final String agentId, @NotNull final String executorId, @NotNull final ByteString data ) { return message( org.apache.mesos.v1.Protos.AgentID.newBuilder().setValue(agentId).build(), org.apache.mesos.v1.Protos.ExecutorID.newBuilder().setValue(executorId).build(), data ); }
return update( org.apache.mesos.v1.Protos.AgentID.newBuilder().setValue(agentId).build(), org.apache.mesos.v1.Protos.ExecutorID.newBuilder().setValue(executorId).build(), org.apache.mesos.v1.Protos.TaskID.newBuilder().setValue(taskId).build(), state,
/** * Utility method to more succinctly construct an {@link Protos.Event Event} of type * {@link Protos.Event.Type#MESSAGE MESSAGE}. * * @param agentId The {@link org.apache.mesos.v1.Protos.AgentID#getValue() value} of the * {@link Protos.Event.Message#getAgentId() agentId} to be set on the * {@link Protos.Event.Message Message}. * @param executorId The {@link org.apache.mesos.v1.Protos.ExecutorID#getValue() value} of the * {@link Protos.Event.Message#getExecutorId() executorId} to be set on the * {@link Protos.Event.Message Message}. * @param data The {@link Protos.Event.Message#getData() data} to be set on the * {@link Protos.Event.Message Message}. * @return A {@link Protos.Call Call} with a configured {@link Protos.Call.Acknowledge Acknowledge}. */ @NotNull public static Protos.Event message( @NotNull final String agentId, @NotNull final String executorId, @NotNull final ByteString data ) { return message( org.apache.mesos.v1.Protos.AgentID.newBuilder().setValue(agentId).build(), org.apache.mesos.v1.Protos.ExecutorID.newBuilder().setValue(executorId).build(), data ); }
/** * <pre> * Identifies the executor which generated this call. * </pre> * * <code>required .mesos.v1.ExecutorID executor_id = 1;</code> */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <pre> * If this was just a failure of an executor on an agent then * 'executor_id' will be set and possibly 'status' (if we were * able to determine the exit status). * </pre> * * <code>optional .mesos.v1.ExecutorID executor_id = 2;</code> */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>required .mesos.v1.ExecutorID executor_id = 2;</code> */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
public static ExecutorID toExecutorId(MesosStringValue stringValue) { return ExecutorID.newBuilder().setValue(stringValue.getValue()).build(); }
/** * <code>required .mesos.v1.ExecutorID executor_id = 1;</code> */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>required .mesos.v1.ExecutorID executor_id = 2;</code> */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
public static ExecutorID toExecutorId(MesosStringValue stringValue) { return ExecutorID.newBuilder().setValue(stringValue.getValue()).build(); }