Class WritableRpcEngine.Server

Enclosing class:
WritableRpcEngine

@Deprecated public static class WritableRpcEngine.Server extends RPC.Server
Deprecated.
An RPC Server.
  • Constructor Details

    • Server

      @Deprecated public Server(Object instance, Configuration conf, String bindAddress, int port) throws IOException
      Deprecated.
      Use #Server(Class, Object, Configuration, String, int)
      Construct an RPC server.
      Parameters:
      instance - the instance 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
      Throws:
      IOException - raised on errors performing I/O.
    • Server

      public Server(Class<?> protocolClass, Object protocolImpl, Configuration conf, String bindAddress, int port) throws IOException
      Deprecated.
      Construct an RPC server.
      Parameters:
      protocolClass - class
      protocolImpl - the instance 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
      Throws:
      IOException - raised on errors performing I/O.
    • Server

      @Deprecated public Server(Object protocolImpl, Configuration conf, String bindAddress, int port, int numHandlers, int numReaders, int queueSizePerHandler, boolean verbose, SecretManager<? extends TokenIdentifier> secretManager) throws IOException
      Deprecated.
      use Server#Server(Class, Object, Configuration, String, int, int, int, int, boolean, SecretManager)
      Construct an RPC server.
      Parameters:
      protocolImpl - the instance 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
      numReaders - input numberReaders.
      queueSizePerHandler - input queueSizePerHandler.
      secretManager - input secretManager.
      Throws:
      IOException - raised on errors performing I/O.
    • Server

      @Deprecated 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) throws IOException
      Deprecated.
      use Server#Server(Class, Object, Configuration, String, int, int, int, int, boolean, SecretManager)
      Construct an RPC server.
      Parameters:
      protocolClass - - the protocol being registered can be null for compatibility with old usage (see below for details)
      protocolImpl - the protocol impl that 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
      secretManager - input secretManager.
      queueSizePerHandler - input queueSizePerHandler.
      portRangeConfig - input portRangeConfig.
      numReaders - input numReaders.
      Throws:
      IOException - raised on errors performing I/O.
    • 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
      Deprecated.
      Construct an RPC server.
      Parameters:
      protocolClass - - the protocol being registered can be null for compatibility with old usage (see below for details)
      protocolImpl - the protocol impl that 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
      alignmentContext - provides server state info on client responses
      numReaders - input numReaders.
      portRangeConfig - input portRangeConfig.
      queueSizePerHandler - input queueSizePerHandler.
      secretManager - input secretManager.
      Throws:
      IOException - raised on errors performing I/O.