RpcProtobufRequest request = (RpcProtobufRequest) writableRequest; RequestHeaderProto rpcRequest = request.getRequestHeader(); String methodName = rpcRequest.getMethodName(); rpcRequest.getDeclaringClassProtocolName(); long clientVersion = rpcRequest.getClientProtocolVersion(); if (server.verbose) LOG.info("Call: connectionProtocolName=" + connectionProtocolName +
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getMethodNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDeclaringClassProtocolNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, clientProtocolVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMethodName()) { hash = (37 * hash) + METHODNAME_FIELD_NUMBER; hash = (53 * hash) + getMethodName().hashCode(); } if (hasDeclaringClassProtocolName()) { hash = (37 * hash) + DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER; hash = (53 * hash) + getDeclaringClassProtocolName().hashCode(); } if (hasClientProtocolVersion()) { hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getClientProtocolVersion()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
RpcRequestWrapper request = (RpcRequestWrapper) writableRequest; RequestHeaderProto rpcRequest = request.requestHeader; String methodName = rpcRequest.getMethodName(); String protoName = rpcRequest.getDeclaringClassProtocolName(); long clientVersion = rpcRequest.getClientProtocolVersion(); if (server.verbose) LOG.info("Call: protocol=" + protocol + ", method=" + methodName);
RpcRequestWrapper request = (RpcRequestWrapper) writableRequest; RequestHeaderProto rpcRequest = request.requestHeader; String methodName = rpcRequest.getMethodName(); String protoName = rpcRequest.getDeclaringClassProtocolName(); long clientVersion = rpcRequest.getClientProtocolVersion(); if (server.verbose) LOG.info("Call: protocol=" + protocol + ", method=" + methodName);
RpcRequestWrapper request = (RpcRequestWrapper) writableRequest; RequestHeaderProto rpcRequest = request.requestHeader; String methodName = rpcRequest.getMethodName(); String protoName = rpcRequest.getDeclaringClassProtocolName(); long clientVersion = rpcRequest.getClientProtocolVersion(); if (server.verbose) LOG.info("Call: protocol=" + protocol + ", method=" + methodName);
RpcProtobufRequest request = (RpcProtobufRequest) writableRequest; RequestHeaderProto rpcRequest = request.getRequestHeader(); String methodName = rpcRequest.getMethodName(); String protoName = rpcRequest.getDeclaringClassProtocolName(); long clientVersion = rpcRequest.getClientProtocolVersion(); if (server.verbose) LOG.info("Call: protocol=" + protocol + ", method=" + methodName);
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto other = (org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto) obj; boolean result = true; result = result && (hasMethodName() == other.hasMethodName()); if (hasMethodName()) { result = result && getMethodName() .equals(other.getMethodName()); } result = result && (hasDeclaringClassProtocolName() == other.hasDeclaringClassProtocolName()); if (hasDeclaringClassProtocolName()) { result = result && getDeclaringClassProtocolName() .equals(other.getDeclaringClassProtocolName()); } result = result && (hasClientProtocolVersion() == other.hasClientProtocolVersion()); if (hasClientProtocolVersion()) { result = result && (getClientProtocolVersion() == other.getClientProtocolVersion()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto other = (org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto) obj; boolean result = true; result = result && (hasMethodName() == other.hasMethodName()); if (hasMethodName()) { result = result && getMethodName() .equals(other.getMethodName()); } result = result && (hasDeclaringClassProtocolName() == other.hasDeclaringClassProtocolName()); if (hasDeclaringClassProtocolName()) { result = result && getDeclaringClassProtocolName() .equals(other.getDeclaringClassProtocolName()); } result = result && (hasClientProtocolVersion() == other.hasClientProtocolVersion()); if (hasClientProtocolVersion()) { result = result && (getClientProtocolVersion() == other.getClientProtocolVersion()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto other = (org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto) obj; boolean result = true; result = result && (hasMethodName() == other.hasMethodName()); if (hasMethodName()) { result = result && getMethodName() .equals(other.getMethodName()); } result = result && (hasDeclaringClassProtocolName() == other.hasDeclaringClassProtocolName()); if (hasDeclaringClassProtocolName()) { result = result && getDeclaringClassProtocolName() .equals(other.getDeclaringClassProtocolName()); } result = result && (hasClientProtocolVersion() == other.hasClientProtocolVersion()); if (hasClientProtocolVersion()) { result = result && (getClientProtocolVersion() == other.getClientProtocolVersion()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>required string declaringClassProtocolName = 2;</code> * * <pre> ** * RPCs for a particular interface (ie protocol) are done using a * IPC connection that is setup using rpcProxy. * The rpcProxy's has a declared protocol name that is * sent form client to server at connection time. * * Each Rpc call also sends a protocol name * (called declaringClassprotocolName). This name is usually the same * as the connection protocol name except in some cases. * For example metaProtocols such ProtocolInfoProto which get metainfo * about the protocol reuse the connection but need to indicate that * the actual protocol is different (i.e. the protocol is * ProtocolInfoProto) since they reuse the connection; in this case * the declaringClassProtocolName field is set to the ProtocolInfoProto * </pre> */ public Builder clearDeclaringClassProtocolName() { bitField0_ = (bitField0_ & ~0x00000002); declaringClassProtocolName_ = getDefaultInstance().getDeclaringClassProtocolName(); onChanged(); return this; } /**
/** * <code>required string declaringClassProtocolName = 2;</code> * * <pre> ** * RPCs for a particular interface (ie protocol) are done using a * IPC connection that is setup using rpcProxy. * The rpcProxy's has a declared protocol name that is * sent form client to server at connection time. * * Each Rpc call also sends a protocol name * (called declaringClassprotocolName). This name is usually the same * as the connection protocol name except in some cases. * For example metaProtocols such ProtocolInfoProto which get metainfo * about the protocol reuse the connection but need to indicate that * the actual protocol is different (i.e. the protocol is * ProtocolInfoProto) since they reuse the connection; in this case * the declaringClassProtocolName field is set to the ProtocolInfoProto * </pre> */ public Builder clearDeclaringClassProtocolName() { bitField0_ = (bitField0_ & ~0x00000002); declaringClassProtocolName_ = getDefaultInstance().getDeclaringClassProtocolName(); onChanged(); return this; } /**
/** * <code>required string declaringClassProtocolName = 2;</code> * * <pre> ** * RPCs for a particular interface (ie protocol) are done using a * IPC connection that is setup using rpcProxy. * The rpcProxy's has a declared protocol name that is * sent form client to server at connection time. * * Each Rpc call also sends a protocol name * (called declaringClassprotocolName). This name is usually the same * as the connection protocol name except in some cases. * For example metaProtocols such ProtocolInfoProto which get metainfo * about the protocol reuse the connection but need to indicate that * the actual protocol is different (i.e. the protocol is * ProtocolInfoProto) since they reuse the connection; in this case * the declaringClassProtocolName field is set to the ProtocolInfoProto * </pre> */ public Builder clearDeclaringClassProtocolName() { bitField0_ = (bitField0_ & ~0x00000002); declaringClassProtocolName_ = getDefaultInstance().getDeclaringClassProtocolName(); onChanged(); return this; } /**
/** * <code>required string declaringClassProtocolName = 2;</code> * * <pre> ** * RPCs for a particular interface (ie protocol) are done using a * IPC connection that is setup using rpcProxy. * The rpcProxy's has a declared protocol name that is * sent form client to server at connection time. * * Each Rpc call also sends a protocol name * (called declaringClassprotocolName). This name is usually the same * as the connection protocol name except in some cases. * For example metaProtocols such ProtocolInfoProto which get metainfo * about the protocol reuse the connection but need to indicate that * the actual protocol is different (i.e. the protocol is * ProtocolInfoProto) since they reuse the connection; in this case * the declaringClassProtocolName field is set to the ProtocolInfoProto * </pre> */ public Builder clearDeclaringClassProtocolName() { bitField0_ = (bitField0_ & ~0x00000002); declaringClassProtocolName_ = getDefaultInstance().getDeclaringClassProtocolName(); onChanged(); return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto other = (org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto) obj; boolean result = true; result = result && (hasMethodName() == other.hasMethodName()); if (hasMethodName()) { result = result && getMethodName() .equals(other.getMethodName()); } result = result && (hasDeclaringClassProtocolName() == other.hasDeclaringClassProtocolName()); if (hasDeclaringClassProtocolName()) { result = result && getDeclaringClassProtocolName() .equals(other.getDeclaringClassProtocolName()); } result = result && (hasClientProtocolVersion() == other.hasClientProtocolVersion()); if (hasClientProtocolVersion()) { result = result && (getClientProtocolVersion() == other.getClientProtocolVersion()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMethodName()) { hash = (37 * hash) + METHODNAME_FIELD_NUMBER; hash = (53 * hash) + getMethodName().hashCode(); } if (hasDeclaringClassProtocolName()) { hash = (37 * hash) + DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER; hash = (53 * hash) + getDeclaringClassProtocolName().hashCode(); } if (hasClientProtocolVersion()) { hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getClientProtocolVersion()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMethodName()) { hash = (37 * hash) + METHODNAME_FIELD_NUMBER; hash = (53 * hash) + getMethodName().hashCode(); } if (hasDeclaringClassProtocolName()) { hash = (37 * hash) + DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER; hash = (53 * hash) + getDeclaringClassProtocolName().hashCode(); } if (hasClientProtocolVersion()) { hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getClientProtocolVersion()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMethodName()) { hash = (37 * hash) + METHODNAME_FIELD_NUMBER; hash = (53 * hash) + getMethodName().hashCode(); } if (hasDeclaringClassProtocolName()) { hash = (37 * hash) + DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER; hash = (53 * hash) + getDeclaringClassProtocolName().hashCode(); } if (hasClientProtocolVersion()) { hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getClientProtocolVersion()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto buildPartial() { org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto result = new org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.methodName_ = methodName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.declaringClassProtocolName_ = declaringClassProtocolName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.clientProtocolVersion_ = clientProtocolVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMethodName()) { hash = (37 * hash) + METHODNAME_FIELD_NUMBER; hash = (53 * hash) + getMethodName().hashCode(); } if (hasDeclaringClassProtocolName()) { hash = (37 * hash) + DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER; hash = (53 * hash) + getDeclaringClassProtocolName().hashCode(); } if (hasClientProtocolVersion()) { hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getClientProtocolVersion()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }