public static class RPC.VersionMismatch extends IOException
Constructor and Description |
---|
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
|
long |
getServerVersion()
Get the server's agreed to version.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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()
Copyright © 2010 The Apache Software Foundation