org.apache.hadoop.oncrpc
Class SimpleUdpClient

java.lang.Object
  extended by org.apache.hadoop.oncrpc.SimpleUdpClient

public class SimpleUdpClient
extends Object

A simple UDP based RPC client which just sends one request to a server.


Field Summary
protected  DatagramSocket clientSocket
           
protected  String host
           
protected  boolean oneShot
           
protected  int port
           
protected  XDR request
           
 
Constructor Summary
SimpleUdpClient(String host, int port, XDR request, Boolean oneShot, DatagramSocket clientSocket)
           
SimpleUdpClient(String host, int port, XDR request, DatagramSocket clientSocket)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SimpleUdpClient

public SimpleUdpClient(String host,
                       int port,
                       XDR request,
                       DatagramSocket clientSocket)

SimpleUdpClient

public SimpleUdpClient(String host,
                       int port,
                       XDR request,
                       Boolean oneShot,
                       DatagramSocket clientSocket)
Method Detail

run

public void run()
         throws IOException
Throws:
IOException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.