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 © 2011 The Apache Software Foundation. All Rights Reserved.