hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/StorageContainerManager.java
private static RPC.Server startRpcServer(OzoneConfiguration conf,
      InetSocketAddress addr, Class<?> protocol, BlockingService instance,
      int handlerCount)
      throws IOException {
    RPC.Server rpcServer = new RPC.Builder(conf)
        .setProtocol(protocol)
        .setInstance(instance)
        .setBindAddress(addr.getHostString())
        .setPort(addr.getPort())
        .setNumHandlers(handlerCount)
        .setVerbose(false)
        .setSecretManager(null)
        .build();

    DFSUtil.addPBProtocol(conf, protocol, instance, rpcServer);
    return rpcServer;
  }
/**
   * Starts an RPC server, if configured.
   *
   * @param conf configuration
   * @param addr configured address of RPC server
   * @param protocol RPC protocol provided by RPC server
   * @param instance RPC protocol implementation instance
   * @param handlerCount RPC server handler count
   *
   * @return RPC server
   * @throws IOException if there is an I/O error while creating RPC server
   */
Starts an RPC server, if configured.

@return RPC server
@throws IOException if there is an I/O error while creating RPC server
Starts an RPC server if configured . @return RPC server @throws IOException if there is an I / O error while creating RPC server
private static RPC.Server startRpcServer(OzoneConfiguration conf,
      InetSocketAddress addr, Class<?> protocol, BlockingService instance,
      int handlerCount)
      throws IOException {
    RPC.Server rpcServer = new RPC.Builder(conf)
        .setProtocol(protocol)
        .setInstance(instance)
        .setBindAddress(addr.getHostString())
        .setPort(addr.getPort())
        .setNumHandlers(handlerCount)
        .setVerbose(false)
        .setSecretManager(null)
        .build();
    DFSUtil.addPBProtocol(conf, protocol, instance, rpcServer);
    return rpcServer;
  }
private static RPC . Server startRpcServer ( OzoneConfiguration conf , InetSocketAddress addr , Class < ? > protocol , BlockingService instance , int handlerCount ) throws IOException { RPC . Server rpcServer = new RPC . Builder ( conf ) . setProtocol ( protocol ) . setInstance ( instance ) . setBindAddress ( addr . getHostString ( ) ) . setPort ( addr . getPort ( ) ) . setNumHandlers ( handlerCount ) . setVerbose ( false ) . setSecretManager ( null ) . build ( ) ; DFSUtil . addPBProtocol ( conf , protocol , instance , rpcServer ) ; return rpcServer ; }
Starts an RPC server, if configured.
Starts an RPC server if configured .