public static class RPC.VersionMismatch extends RpcServerException
| Constructor and Description |
|---|
RPC.VersionMismatch(String interfaceName,
long clientVersion,
long serverVersion)
Create a version mismatch exception
|
| Modifier and Type | Method and Description |
|---|---|
long |
getClientVersion()
Get the client's preferred version
|
String |
getInterfaceName()
Get the interface name
|
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getRpcErrorCodeProto()
get the detailed rpc status corresponding to this exception
|
RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto |
getRpcStatusProto()
get the rpc status corresponding to this exception
|
long |
getServerVersion()
Get the server's agreed to version.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RPC.VersionMismatch(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 String getInterfaceName()
public long getClientVersion()
public long getServerVersion()
public RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getRpcStatusProto()
getRpcStatusProto in class RpcServerExceptionpublic RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getRpcErrorCodeProto()
getRpcErrorCodeProto in class RpcServerExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.