Class RPC.VersionMismatch

All Implemented Interfaces:
Serializable
Enclosing class:
RPC

public static class RPC.VersionMismatch extends RpcServerException
A version mismatch for the RPC protocol.
See Also:
  • Constructor Details

    • VersionMismatch

      public 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 Details

    • getInterfaceName

      public String getInterfaceName()
      Get the interface name
      Returns:
      the java class name (eg. org.apache.hadoop.mapred.InterTrackerProtocol)
    • getClientVersion

      public long getClientVersion()
      Returns:
      Get the client's preferred version.
    • getServerVersion

      public long getServerVersion()
      Returns:
      Get the server's agreed to version.
    • getRpcStatusProto

      public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getRpcStatusProto()
      get the rpc status corresponding to this exception
      Overrides:
      getRpcStatusProto in class RpcServerException
      Returns:
      get the rpc status corresponding to this exception.
    • getRpcErrorCodeProto

      public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getRpcErrorCodeProto()
      get the detailed rpc status corresponding to this exception
      Overrides:
      getRpcErrorCodeProto in class RpcServerException
      Returns:
      get the detailed rpc status corresponding to this exception.