Class SimpleTcpServer

java.lang.Object
org.apache.hadoop.oncrpc.SimpleTcpServer

public class SimpleTcpServer extends Object
Simple UDP server implemented using netty.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
    • port

      protected final int port
    • boundPort

      protected int boundPort
    • rpcProgram

      protected final io.netty.channel.ChannelInboundHandlerAdapter rpcProgram
    • workerCount

      protected final int workerCount
      The maximum number of I/O worker threads
  • Constructor Details

    • SimpleTcpServer

      public SimpleTcpServer(int port, RpcProgram program, int workercount)
      Parameters:
      port - TCP port where to start the server at
      program - RPC program corresponding to the server
      workercount - Number of worker threads
  • Method Details