Package org.apache.hadoop.ipc
Class RPC.VersionMismatch
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.ipc.RpcException
org.apache.hadoop.ipc.RpcServerException
org.apache.hadoop.ipc.RPC.VersionMismatch
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RPC
A version mismatch for the RPC protocol.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVersionMismatch(String interfaceName, long clientVersion, long serverVersion) Create a version mismatch exception -
Method Summary
Modifier and TypeMethodDescriptionlongGet the interface nameorg.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProtoget the detailed rpc status corresponding to this exceptionorg.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProtoget the rpc status corresponding to this exceptionlongMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VersionMismatch
Create a version mismatch exception- Parameters:
interfaceName- the name of the protocol mismatchclientVersion- the client's version of the protocolserverVersion- the server's version of the protocol
-
-
Method Details
-
getInterfaceName
Get the interface name- Returns:
- the java class name (eg. org.apache.hadoop.mapred.InterTrackerProtocol)
-
getClientVersion
public long getClientVersion()- Returns:
- Get the client's preferred version.
-
getServerVersion
public long getServerVersion()- Returns:
- Get the server's agreed to version.
-
getRpcStatusProto
public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getRpcStatusProto()get the rpc status corresponding to this exception- Overrides:
getRpcStatusProtoin classRpcServerException- Returns:
- get the rpc status corresponding to this exception.
-
getRpcErrorCodeProto
public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getRpcErrorCodeProto()get the detailed rpc status corresponding to this exception- Overrides:
getRpcErrorCodeProtoin classRpcServerException- Returns:
- get the detailed rpc status corresponding to this exception.
-