public static final class RpcHeaderProtos.RpcResponseHeaderProto extends com.google.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 |
| 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 com.google.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
|
com.google.protobuf.ByteString |
getClientId()
Globally unique client ID
|
static RpcHeaderProtos.RpcResponseHeaderProto |
getDefaultInstance() |
RpcHeaderProtos.RpcResponseHeaderProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getErrorDetail()
in case of error
|
String |
getErrorMsg()
if request fails, often contains strack trace
|
com.google.protobuf.ByteString |
getErrorMsgBytes()
if request fails, often contains strack trace
|
String |
getExceptionClassName()
if request fails
|
com.google.protobuf.ByteString |
getExceptionClassNameBytes()
if request fails
|
com.google.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; |
com.google.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 com.google.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(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseDelimitedFrom(InputStream input) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(byte[] data) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(ByteBuffer data) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(com.google.protobuf.ByteString data) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(InputStream input) |
static RpcHeaderProtos.RpcResponseHeaderProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> |
parser() |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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 com.google.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuilderpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public 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 com.google.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 com.google.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 com.google.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 com.google.protobuf.MessageLiteOrBuilderpublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
IOExceptionpublic int getSerializedSize()
public boolean equals(Object obj)
public int hashCode()
public static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RpcHeaderProtos.RpcResponseHeaderProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilderForType()
public static RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilder()
public static RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilder(RpcHeaderProtos.RpcResponseHeaderProto prototype)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder toBuilder()
protected RpcHeaderProtos.RpcResponseHeaderProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstance()
public static com.google.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> parser()
public com.google.protobuf.Parser<RpcHeaderProtos.RpcResponseHeaderProto> getParserForType()
public RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2008–2020 Apache Software Foundation. All rights reserved.