Package org.apache.hadoop.oncrpc
Class SimpleUdpClient
java.lang.Object
org.apache.hadoop.oncrpc.SimpleUdpClient
A simple UDP based RPC client which just sends one request to a server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DatagramSocketprotected final Stringprotected final booleanprotected final intprotected final XDR -
Constructor Summary
ConstructorsConstructorDescriptionSimpleUdpClient(String host, int port, XDR request, Boolean oneShot, DatagramSocket clientSocket) SimpleUdpClient(String host, int port, XDR request, Boolean oneShot, DatagramSocket clientSocket, int udpTimeoutMillis) SimpleUdpClient(String host, int port, XDR request, DatagramSocket clientSocket) -
Method Summary
-
Field Details
-
host
-
port
protected final int port -
request
-
oneShot
protected final boolean oneShot -
clientSocket
-
-
Constructor Details
-
SimpleUdpClient
-
SimpleUdpClient
public SimpleUdpClient(String host, int port, XDR request, Boolean oneShot, DatagramSocket clientSocket) -
SimpleUdpClient
public SimpleUdpClient(String host, int port, XDR request, Boolean oneShot, DatagramSocket clientSocket, int udpTimeoutMillis)
-
-
Method Details
-
run
- Throws:
IOException
-