com.nhncorp.neptune.common.ipc
Class NRPC.VersionMismatch

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.nhncorp.neptune.common.ipc.NRPC.VersionMismatch
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
NRPC

public static class NRPC.VersionMismatch
extends java.io.IOException

A version mismatch for the RPC protocol.

See Also:
Serialized Form

Constructor Summary
NRPC.VersionMismatch(java.lang.String interfaceName, long clientVersion, long serverVersion)
          Create a version mismatch exception
 
Method Summary
 long getClientVersion()
          Get the client's prefered version
 java.lang.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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NRPC.VersionMismatch

public NRPC.VersionMismatch(java.lang.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 java.lang.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 prefered version


getServerVersion

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