Class RPC.Server

java.lang.Object
org.apache.hadoop.ipc.Server
org.apache.hadoop.ipc.RPC.Server
Direct Known Subclasses:
ProtobufRpcEngine2.Server, WritableRpcEngine.Server
Enclosing class:
RPC

public abstract static class RPC.Server extends Server
An RPC Server.
  • Constructor Details

  • Method Details

    • addProtocol

      public RPC.Server addProtocol(RPC.RpcKind rpcKind, Class<?> protocolClass, Object protocolImpl)
      Add a protocol to the existing server.
      Parameters:
      rpcKind - - input rpcKind
      protocolClass - - the protocol class
      protocolImpl - - the impl of the protocol that will be called
      Returns:
      the server (for convenience)
    • call

      public Writable call(RPC.RpcKind rpcKind, String protocol, Writable rpcRequest, long receiveTime) throws Exception
      Description copied from class: Server
      Called for each call.
      Specified by:
      call in class Server
      Parameters:
      rpcKind - input rpcKind.
      protocol - input protocol.
      rpcRequest - input param.
      receiveTime - input receiveTime.
      Returns:
      Call.
      Throws:
      Exception - raised on errors performing I/O.