org.apache.hadoop.ipc
Class RPC.VersionMismatch

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.hadoop.ipc.RPC.VersionMismatch
All Implemented Interfaces:
Serializable
Enclosing class:
RPC

public static class RPC.VersionMismatch
extends IOException

A version mismatch for the RPC protocol.

See Also:
Serialized Form

Constructor Summary
RPC.VersionMismatch(String interfaceName, long clientVersion, long serverVersion)
          Create a version mismatch exception
 
Method Summary
 long getClientVersion()
          Get the client's preferred version
 String getInterfaceName()
          Get the interface name
 long getServerVersion()
          Get the server's agreed to version.
 
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

RPC.VersionMismatch

public RPC.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()
Get the client's preferred version


getServerVersion

public long getServerVersion()
Get the server's agreed to version.



Copyright © 2009 The Apache Software Foundation