Class ProtobufRpcEngine.Server

Enclosing class:
ProtobufRpcEngine

public static class ProtobufRpcEngine.Server extends ProtobufRpcEngine2.Server
Server implementation is always ProtobufRpcEngine2 based implementation, supports backward compatibility for protobuf 2.5 based implementations, which uses non-shaded protobuf classes.
  • Constructor Details

    • Server

      public Server(Class<?> protocolClass, Object protocolImpl, Configuration conf, String bindAddress, int port, int numHandlers, int numReaders, int queueSizePerHandler, boolean verbose, SecretManager<? extends TokenIdentifier> secretManager, String portRangeConfig, AlignmentContext alignmentContext) throws IOException
      Construct an RPC server.
      Parameters:
      protocolClass - the class of protocol
      protocolImpl - the protocolImpl whose methods will be called
      conf - the configuration to use
      bindAddress - the address to bind on to listen for connection
      port - the port to listen for connections on
      numHandlers - the number of method handler threads to run
      verbose - whether each call should be logged
      portRangeConfig - A config parameter that can be used to restrict the range of ports used when port is 0 (an ephemeral port)
      alignmentContext - provides server state info on client responses
      secretManager - input secretManager.
      queueSizePerHandler - input queueSizePerHandler.
      numReaders - input numReaders.
      Throws:
      IOException - raised on errors performing I/O.
  • Method Details