org.apache.hadoop.hbase.ipc
Class HBaseRPC.VersionMismatch

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by 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

Constructor Summary
HBaseRPC.VersionMismatch(String interfaceName, long clientVersion, long serverVersion)
          Create a version mismatch exception
 
Method Summary
 long getClientVersion()
           
 String getInterfaceName()
          Get the interface name
 long getServerVersion()
           
 
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
 

Constructor Detail

HBaseRPC.VersionMismatch

public HBaseRPC.VersionMismatch(String interfaceName,
                                long clientVersion,
                                long serverVersion)
Create a version mismatch exception

Parameters:
interfaceName - the name of the protocol mismatch
clientVersion - the client's version of the protocol
serverVersion - the server's version of the protocol
Method Detail

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.