org.apache.hadoop.hbase.ipc
Class HbaseRPC.VersionMismatch
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hbase.ipc.HbaseRPC.VersionMismatch
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- HbaseRPC
public static class HbaseRPC.VersionMismatch
- extends IOException
A version mismatch for the RPC protocol.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
HbaseRPC.VersionMismatch
public HbaseRPC.VersionMismatch(String interfaceName,
long clientVersion,
long serverVersion)
- 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
getInterfaceName
public String getInterfaceName()
- Get the interface name
- Returns:
- the java class name
(eg. org.apache.hadoop.mapred.InterTrackerProtocol)
getClientVersion
public long getClientVersion()
- Returns:
- the client's preferred version
getServerVersion
public long getServerVersion()
- Returns:
- the server's agreed to version.
Copyright © 2008 The Apache Software Foundation