org.apache.hadoop.oncrpc
Class SimpleUdpServer

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

public class SimpleUdpServer
extends Object

Simple UDP server implemented based on netty.


Field Summary
static org.apache.commons.logging.Log LOG
           
protected  org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory
           
protected  int port
           
protected  RpcProgram rpcProgram
           
protected  int workerCount
           
 
Constructor Summary
SimpleUdpServer(int port, RpcProgram program, int workerCount)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

port

protected final int port

pipelineFactory

protected final org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory

rpcProgram

protected final RpcProgram rpcProgram

workerCount

protected final int workerCount
Constructor Detail

SimpleUdpServer

public SimpleUdpServer(int port,
                       RpcProgram program,
                       int workerCount)
Method Detail

run

public void run()


Copyright © 2009 The Apache Software Foundation