@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasIdentifier()) { hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getIdentifier().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getIdentifierBytes()); } getUnknownFields().writeTo(output); }
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto)) { return super.equals(obj); } com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto other = (com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto) obj; boolean result = true; result = result && (hasIdentifier() == other.hasIdentifier()); if (hasIdentifier()) { result = result && getIdentifier() .equals(other.getIdentifier()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * Receives and processes a resource release request. * * @param releaseRequest the release request to be processed */ final void onResourceReleaseRequest(final DriverRuntimeProtocol.ResourceReleaseProto releaseRequest) { synchronized (this.theContainers) { LOG.log(Level.FINEST, "Release container: {0}", releaseRequest.getIdentifier()); this.theContainers.release(releaseRequest.getIdentifier()); this.checkRequestQueue(); } }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasIdentifier()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
@Override public void onNext(final DriverRuntimeProtocol.ResourceReleaseProto resourceReleaseProto) { final String containerId = resourceReleaseProto.getIdentifier(); LOG.log(Level.FINEST, "Releasing container {0}", containerId); this.yarnContainerManager.get().release(containerId); } }
public com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto buildPartial() { com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto result = new com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.identifier_ = identifier_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>required string identifier = 1;</code> */ public Builder clearIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); identifier_ = getDefaultInstance().getIdentifier(); onChanged(); return this; } /**
public com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto getDefaultInstanceForType() { return com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto.getDefaultInstance(); }
public Builder mergeFrom(com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto other) { if (other == com.microsoft.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto.getDefaultInstance()) return this; if (other.hasIdentifier()) { bitField0_ |= 0x00000001; identifier_ = other.identifier_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getIdentifierBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }