java.io.Serializablepublic static class RPC.VersionMismatch extends RpcServerException
| Constructor | Description |
|---|---|
VersionMismatch(java.lang.String interfaceName,
long clientVersion,
long serverVersion) |
Create a version mismatch exception
|
| Modifier and Type | Method | Description |
|---|---|---|
long |
getClientVersion() |
|
java.lang.String |
getInterfaceName() |
Get the interface name
|
org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getRpcErrorCodeProto() |
get the detailed rpc status corresponding to this exception
|
org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto |
getRpcStatusProto() |
get the rpc status corresponding to this exception
|
long |
getServerVersion() |
public VersionMismatch(java.lang.String interfaceName,
long clientVersion,
long serverVersion)
interfaceName - the name of the protocol mismatchclientVersion - the client's version of the protocolserverVersion - the server's version of the protocolpublic java.lang.String getInterfaceName()
public long getClientVersion()
public long getServerVersion()
public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getRpcStatusProto()
getRpcStatusProto in class RpcServerExceptionpublic org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getRpcErrorCodeProto()
getRpcErrorCodeProto in class RpcServerExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.