org.apache.hadoop.oncrpc
Class SimpleTcpClient

java.lang.Object
  extended by org.apache.hadoop.oncrpc.SimpleTcpClient
Direct Known Subclasses:
RegistrationClient

public class SimpleTcpClient
extends Object

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


Field Summary
protected  String host
           
protected  boolean oneShot
           
protected  org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory
           
protected  int port
           
protected  XDR request
           
 
Constructor Summary
SimpleTcpClient(String host, int port, XDR request)
           
SimpleTcpClient(String host, int port, XDR request, Boolean oneShot)
           
 
Method Summary
 void run()
           
protected  org.jboss.netty.channel.ChannelPipelineFactory setPipelineFactory()
           
 
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

pipelineFactory

protected org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory

oneShot

protected final boolean oneShot
Constructor Detail

SimpleTcpClient

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

SimpleTcpClient

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

setPipelineFactory

protected org.jboss.netty.channel.ChannelPipelineFactory setPipelineFactory()

run

public void run()


Copyright © 2009 The Apache Software Foundation