public static final class RpcHeaderProtos.RpcResponseHeaderProto extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
Rpc Response Header +------------------------------------------------------------------+ | Rpc total response length in bytes (4 bytes int) | | (sum of next two parts) | +------------------------------------------------------------------+ | RpcResponseHeaderProto - serialized delimited ie has len | +------------------------------------------------------------------+ | if request is successful: | | - RpcResponse - The actual rpc response bytes follow | | the response header | | This response is serialized based on RpcKindProto | | if request fails : | | The rpc response header contains the necessary info | +------------------------------------------------------------------+ Note that rpc response header is also used when connection setup fails. Ie the response looks like a rpc response with a fake callId.Protobuf type
hadoop.common.RpcResponseHeaderProto| Modifier and Type | Class and Description |
|---|---|
static class |
RpcHeaderProtos.RpcResponseHeaderProto.Builder
Rpc Response Header
+------------------------------------------------------------------+
| Rpc total response length in bytes (4 bytes int) |
| (sum of next two parts) |
+------------------------------------------------------------------+
| RpcResponseHeaderProto - serialized delimited ie has len |
+------------------------------------------------------------------+
| if request is successful: |
| - RpcResponse - The actual rpc response bytes follow |
| the response header |
| This response is serialized based on RpcKindProto |
| if request fails : |
| The rpc response header contains the necessary info |
+------------------------------------------------------------------+
Note that rpc response header is also used when connection setup fails.
|
static class |
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto
Protobuf enum
hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto |
static class |
RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto
Protobuf enum
hadoop.common.RpcResponseHeaderProto.RpcStatusProto |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent, org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableMessage>, org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableMessage>, org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CALLID_FIELD_NUMBER |
static int |
CLIENTID_FIELD_NUMBER |
static int |
ERRORDETAIL_FIELD_NUMBER |
static int |
ERRORMSG_FIELD_NUMBER |
static int |
EXCEPTIONCLASSNAME_FIELD_NUMBER |
static org.apache.hadoop.thirdparty.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> |
PARSER
Deprecated.
|
static int |
RETRYCOUNT_FIELD_NUMBER |
static int |
SERVERIPCVERSIONNUM_FIELD_NUMBER |
static int |
STATEID_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getCallId()
callId used in Request
|
org.apache.hadoop.thirdparty.protobuf.ByteString |
getClientId()
Globally unique client ID
|
static RpcHeaderProtos.RpcResponseHeaderProto |
getDefaultInstance() |
RpcHeaderProtos.RpcResponseHeaderProto |
getDefaultInstanceForType() |
static org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor |
getDescriptor() |
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getErrorDetail()
in case of error
|
String |
getErrorMsg()
if request fails, often contains strack trace
|
org.apache.hadoop.thirdparty.protobuf.ByteString |
getErrorMsgBytes()
if request fails, often contains strack trace
|
String |
getExceptionClassName()
if request fails
|
org.apache.hadoop.thirdparty.protobuf.ByteString |
getExceptionClassNameBytes()
if request fails
|
org.apache.hadoop.thirdparty.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> |
getParserForType() |
int |
getRetryCount()
optional sint32 retryCount = 8 [default = -1]; |
int |
getSerializedSize() |
int |
getServerIpcVersionNum()
Sent if success or fail
|
long |
getStateId()
The last written Global State ID
|
RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto |
getStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2; |
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCallId()
callId used in Request
|
boolean |
hasClientId()
Globally unique client ID
|
boolean |
hasErrorDetail()
in case of error
|
boolean |
hasErrorMsg()
if request fails, often contains strack trace
|
boolean |
hasExceptionClassName()
if request fails
|
int |
hashCode() |
boolean |
hasRetryCount()
optional sint32 retryCount = 8 [default = -1]; |
boolean |
hasServerIpcVersionNum()
Sent if success or fail
|
boolean |
hasStateId()
The last written Global State ID
|
boolean |
hasStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2; |
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RpcHeaderProtos.RpcResponseHeaderProto.Builder |
newBuilder() |
static RpcHeaderProtos.RpcResponseHeaderProto.Builder |
newBuilder(RpcHeaderProtos.RpcResponseHeaderProto prototype) |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
newBuilderForType() |
protected RpcHeaderProtos.RpcResponseHeaderProto.Builder |
newBuilderForType(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseDelimitedFrom(InputStream input) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseDelimitedFrom(InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(byte[] data) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(ByteBuffer data) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(org.apache.hadoop.thirdparty.protobuf.ByteString data) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(InputStream input) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
static org.apache.hadoop.thirdparty.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> |
parser() |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
toBuilder() |
void |
writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CALLID_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int SERVERIPCVERSIONNUM_FIELD_NUMBER
public static final int EXCEPTIONCLASSNAME_FIELD_NUMBER
public static final int ERRORMSG_FIELD_NUMBER
public static final int ERRORDETAIL_FIELD_NUMBER
public static final int CLIENTID_FIELD_NUMBER
public static final int RETRYCOUNT_FIELD_NUMBER
public static final int STATEID_FIELD_NUMBER
@Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> PARSER
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuildergetUnknownFields in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptor()
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3public boolean hasCallId()
callId used in Request
required uint32 callId = 1;hasCallId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getCallId()
callId used in Request
required uint32 callId = 1;getCallId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;hasStatus in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;getStatus in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasServerIpcVersionNum()
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;hasServerIpcVersionNum in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getServerIpcVersionNum()
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;getServerIpcVersionNum in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasExceptionClassName()
if request fails
optional string exceptionClassName = 4;hasExceptionClassName in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic String getExceptionClassName()
if request fails
optional string exceptionClassName = 4;getExceptionClassName in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic org.apache.hadoop.thirdparty.protobuf.ByteString getExceptionClassNameBytes()
if request fails
optional string exceptionClassName = 4;getExceptionClassNameBytes in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasErrorMsg()
if request fails, often contains strack trace
optional string errorMsg = 5;hasErrorMsg in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic String getErrorMsg()
if request fails, often contains strack trace
optional string errorMsg = 5;getErrorMsg in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic org.apache.hadoop.thirdparty.protobuf.ByteString getErrorMsgBytes()
if request fails, often contains strack trace
optional string errorMsg = 5;getErrorMsgBytes in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasErrorDetail()
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;hasErrorDetail in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getErrorDetail()
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;getErrorDetail in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasClientId()
Globally unique client ID
optional bytes clientId = 7;hasClientId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic org.apache.hadoop.thirdparty.protobuf.ByteString getClientId()
Globally unique client ID
optional bytes clientId = 7;getClientId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasRetryCount()
optional sint32 retryCount = 8 [default = -1];hasRetryCount in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getRetryCount()
optional sint32 retryCount = 8 [default = -1];getRetryCount in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic boolean hasStateId()
The last written Global State ID
optional int64 stateId = 9;hasStateId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic long getStateId()
The last written Global State ID
optional int64 stateId = 9;getStateId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic final boolean isInitialized()
isInitialized in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilderisInitialized in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface org.apache.hadoop.thirdparty.protobuf.MessageLitewriteTo in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface org.apache.hadoop.thirdparty.protobuf.MessageLitegetSerializedSize in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface org.apache.hadoop.thirdparty.protobuf.Messageequals in class org.apache.hadoop.thirdparty.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface org.apache.hadoop.thirdparty.protobuf.MessagehashCode in class org.apache.hadoop.thirdparty.protobuf.AbstractMessagepublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(ByteBuffer data) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(ByteBuffer data, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(org.apache.hadoop.thirdparty.protobuf.ByteString data) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(org.apache.hadoop.thirdparty.protobuf.ByteString data, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(byte[] data) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(byte[] data, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(InputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseDelimitedFrom(InputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilderForType()
newBuilderForType in interface org.apache.hadoop.thirdparty.protobuf.MessagenewBuilderForType in interface org.apache.hadoop.thirdparty.protobuf.MessageLitepublic static RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilder()
public static RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilder(RpcHeaderProtos.RpcResponseHeaderProto prototype)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder toBuilder()
toBuilder in interface org.apache.hadoop.thirdparty.protobuf.MessagetoBuilder in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteprotected RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilderForType(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3public static RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstance()
public static org.apache.hadoop.thirdparty.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> parser()
public org.apache.hadoop.thirdparty.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> getParserForType()
getParserForType in interface org.apache.hadoop.thirdparty.protobuf.MessagegetParserForType in interface org.apache.hadoop.thirdparty.protobuf.MessageLitegetParserForType in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3public RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstanceForType()
getDefaultInstanceForType in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilderCopyright © 2008–2020 Apache Software Foundation. All rights reserved.