Class SimpleTcpClient

java.lang.Object
org.apache.hadoop.oncrpc.SimpleTcpClient
Direct Known Subclasses:
RegistrationClient

public class SimpleTcpClient extends Object
A simple TCP based RPC client which just sends a request to a server.
  • Field Details

    • host

      protected final String host
    • port

      protected final int port
    • request

      protected final XDR request
    • oneShot

      protected final boolean oneShot
  • Constructor Details

    • SimpleTcpClient

      public SimpleTcpClient(String host, int port, XDR request)
    • SimpleTcpClient

      public SimpleTcpClient(String host, int port, XDR request, Boolean oneShot)
  • Method Details

    • setChannelHandler

      protected io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> setChannelHandler()
    • run

      @VisibleForTesting public void run()
    • stop

      public void stop()