Package org.apache.hadoop.oncrpc
Class SimpleTcpClient
java.lang.Object
org.apache.hadoop.oncrpc.SimpleTcpClient
- Direct Known Subclasses:
RegistrationClient
A simple TCP based RPC client which just sends a request to a server.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleTcpClient(String host, int port, XDR request) SimpleTcpClient(String host, int port, XDR request, Boolean oneShot) -
Method Summary
-
Field Details
-
host
-
port
protected final int port -
request
-
oneShot
protected final boolean oneShot
-
-
Constructor Details
-
SimpleTcpClient
-
SimpleTcpClient
-
-
Method Details
-
setChannelHandler
protected io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> setChannelHandler() -
run
@VisibleForTesting public void run() -
stop
public void stop()
-