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,
/** * <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 org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { if (executorIdBuilder_ != null) { return executorIdBuilder_.getMessageOrBuilder(); } else { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (hasExecutorId()) { hash = (37 * hash) + EXECUTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getExecutorId().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = executorId_.toBuilder();
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = executorId_.toBuilder();
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = executorId_.toBuilder();
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = executorId_.toBuilder();
.setExecutorId(ExecutorID.newBuilder().setValue(task.getDeploy().getCustomExecutorId().or(idGenerator.getNextExecutorId())))
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = executorId_.toBuilder();
return false; if (!getExecutorId().isInitialized()) { memoizedIsInitialized = 0; return false;
if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId());
if (hasExecutorId()) { hash = (37 * hash) + EXECUTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getExecutorId().hashCode();
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,
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.scheduler.Protos.Call.Message)) { return super.equals(obj); } org.apache.mesos.v1.scheduler.Protos.Call.Message other = (org.apache.mesos.v1.scheduler.Protos.Call.Message) obj; boolean result = true; result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasExecutorId() == other.hasExecutorId()); if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.scheduler.Protos.Event.Message)) { return super.equals(obj); } org.apache.mesos.v1.scheduler.Protos.Event.Message other = (org.apache.mesos.v1.scheduler.Protos.Event.Message) obj; boolean result = true; result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasExecutorId() == other.hasExecutorId()); if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * 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 ); }
/** * 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> * 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 mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && executorId_ != null && executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial(); } else { executorId_ = value; } onChanged(); } else { executorIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.scheduler.Protos.Event.Failure)) { return super.equals(obj); } org.apache.mesos.v1.scheduler.Protos.Event.Failure other = (org.apache.mesos.v1.scheduler.Protos.Event.Failure) obj; boolean result = true; result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasExecutorId() == other.hasExecutorId()); if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && (getStatus() == other.getStatus()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasAgentId()) { memoizedIsInitialized = 0; return false; } if (!hasExecutorId()) { memoizedIsInitialized = 0; return false; } if (!hasData()) { memoizedIsInitialized = 0; return false; } if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getExecutorId().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }