org.apache.hadoop.oncrpc
Class SimpleUdpClient
java.lang.Object
org.apache.hadoop.oncrpc.SimpleUdpClient
public class SimpleUdpClient
- extends Object
A simple UDP based RPC client which just sends one request to a server.
|
Method Summary |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
host
protected final String host
port
protected final int port
request
protected final XDR request
oneShot
protected final boolean oneShot
clientSocket
protected final DatagramSocket clientSocket
SimpleUdpClient
public SimpleUdpClient(String host,
int port,
XDR request,
DatagramSocket clientSocket)
SimpleUdpClient
public SimpleUdpClient(String host,
int port,
XDR request,
Boolean oneShot,
DatagramSocket clientSocket)
run
public void run()
throws IOException
- Throws:
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.