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:
- java.io.Serializable
- Enclosing class:
- HBaseRPC
public static class HBaseRPC.VersionMismatch
- extends java.io.IOException
A version mismatch for the RPC protocol.
- See Also:
- Serialized Form
|
Constructor Summary |
HBaseRPC.VersionMismatch(java.lang.String interfaceName,
long clientVersion,
long serverVersion)
Create a version mismatch exception |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HBaseRPC.VersionMismatch
public HBaseRPC.VersionMismatch(java.lang.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 java.lang.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 © 2011 The Apache Software Foundation. All Rights Reserved.