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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
public 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.GeneratedMessageV3
public boolean hasCallId()
callId used in Request
required uint32 callId = 1;
hasCallId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public int getCallId()
callId used in Request
required uint32 callId = 1;
getCallId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;
hasStatus
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;
getStatus
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasServerIpcVersionNum()
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;
hasServerIpcVersionNum
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public int getServerIpcVersionNum()
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;
getServerIpcVersionNum
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasExceptionClassName()
if request fails
optional string exceptionClassName = 4;
hasExceptionClassName
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public String getExceptionClassName()
if request fails
optional string exceptionClassName = 4;
getExceptionClassName
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public org.apache.hadoop.thirdparty.protobuf.ByteString getExceptionClassNameBytes()
if request fails
optional string exceptionClassName = 4;
getExceptionClassNameBytes
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasErrorMsg()
if request fails, often contains strack trace
optional string errorMsg = 5;
hasErrorMsg
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public String getErrorMsg()
if request fails, often contains strack trace
optional string errorMsg = 5;
getErrorMsg
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public org.apache.hadoop.thirdparty.protobuf.ByteString getErrorMsgBytes()
if request fails, often contains strack trace
optional string errorMsg = 5;
getErrorMsgBytes
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasErrorDetail()
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;
hasErrorDetail
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getErrorDetail()
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;
getErrorDetail
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasClientId()
Globally unique client ID
optional bytes clientId = 7;
hasClientId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public org.apache.hadoop.thirdparty.protobuf.ByteString getClientId()
Globally unique client ID
optional bytes clientId = 7;
getClientId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasRetryCount()
optional sint32 retryCount = 8 [default = -1];
hasRetryCount
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public int getRetryCount()
optional sint32 retryCount = 8 [default = -1];
getRetryCount
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public boolean hasStateId()
The last written Global State ID
optional int64 stateId = 9;
hasStateId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public long getStateId()
The last written Global State ID
optional int64 stateId = 9;
getStateId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder
isInitialized
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite
writeTo
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite
getSerializedSize
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface org.apache.hadoop.thirdparty.protobuf.Message
equals
in class org.apache.hadoop.thirdparty.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface org.apache.hadoop.thirdparty.protobuf.Message
hashCode
in class org.apache.hadoop.thirdparty.protobuf.AbstractMessage
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(ByteBuffer data) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
public 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.InvalidProtocolBufferException
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(org.apache.hadoop.thirdparty.protobuf.ByteString data) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
public 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.InvalidProtocolBufferException
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(byte[] data) throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException
public 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.InvalidProtocolBufferException
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(InputStream input) throws IOException
IOException
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(InputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RpcHeaderProtos.RpcResponseHeaderProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static RpcHeaderProtos.RpcResponseHeaderProto parseDelimitedFrom(InputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input) throws IOException
IOException
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilderForType()
newBuilderForType
in interface org.apache.hadoop.thirdparty.protobuf.Message
newBuilderForType
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite
public 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.Message
toBuilder
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite
protected RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilderForType(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite
getParserForType
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
public RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.