private boolean hasExpectedExecutorId(Protos.Offer offer) { if (!id.isPresent()) { return true; } for (Protos.ExecutorID execId : offer.getExecutorIdsList()) { if (execId.equals(id.get())) { return true; } } return false; } }
public static boolean isRunningExecutor(PodInfoBuilder podInfoBuilder, Protos.Offer offer) { if (!podInfoBuilder.getExecutorBuilder().isPresent()) { return false; } for (Protos.ExecutorID execId : offer.getExecutorIdsList()) { if (execId.equals(podInfoBuilder.getExecutorBuilder().get().getExecutorId())) { return true; } } return false; } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.scheduler.Protos.Event.Message)) { return super.equals(obj); } org.apache.mesos.scheduler.Protos.Event.Message other = (org.apache.mesos.scheduler.Protos.Event.Message) obj; boolean result = true; result = result && (hasSlaveId() == other.hasSlaveId()); if (hasSlaveId()) { result = result && getSlaveId() .equals(other.getSlaveId()); } 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; }
if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.scheduler.Protos.Event.Failure)) { return super.equals(obj); } org.apache.mesos.scheduler.Protos.Event.Failure other = (org.apache.mesos.scheduler.Protos.Event.Failure) obj; boolean result = true; result = result && (hasSlaveId() == other.hasSlaveId()); if (hasSlaveId()) { result = result && getSlaveId() .equals(other.getSlaveId()); } 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; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.scheduler.Protos.Call.Message)) { return super.equals(obj); } org.apache.mesos.scheduler.Protos.Call.Message other = (org.apache.mesos.scheduler.Protos.Call.Message) obj; boolean result = true; result = result && (hasSlaveId() == other.hasSlaveId()); if (hasSlaveId()) { result = result && getSlaveId() .equals(other.getSlaveId()); } 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.scheduler.Protos.Call.Shutdown)) { return super.equals(obj); } org.apache.mesos.scheduler.Protos.Call.Shutdown other = (org.apache.mesos.scheduler.Protos.Call.Shutdown) obj; boolean result = true; result = result && (hasExecutorId() == other.hasExecutorId()); if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId()); } result = result && (hasSlaveId() == other.hasSlaveId()); if (hasSlaveId()) { result = result && getSlaveId() .equals(other.getSlaveId()); } result = result && unknownFields.equals(other.unknownFields); return result; }