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  String host
           
protected  boolean oneShot
           
protected  int port
           
protected  XDR request
           
 
Constructor Summary
SimpleUdpClient(String host, int port, XDR request)
           
SimpleUdpClient(String host, int port, XDR request, Boolean oneShot)
           
 
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
Constructor Detail

SimpleUdpClient

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

SimpleUdpClient

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

run

public void run()
         throws IOException
Throws:
IOException


Copyright © 2009 The Apache Software Foundation