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
protected  int boundPort
           
static org.apache.commons.logging.Log LOG
           
protected  int port
           
protected  org.jboss.netty.channel.SimpleChannelUpstreamHandler rpcProgram
           
protected  int workerCount
           
 
Constructor Summary
SimpleUdpServer(int port, org.jboss.netty.channel.SimpleChannelUpstreamHandler program, int workerCount)
           
 
Method Summary
 int getBoundPort()
           
 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

rpcProgram

protected final org.jboss.netty.channel.SimpleChannelUpstreamHandler rpcProgram

workerCount

protected final int workerCount

boundPort

protected int boundPort
Constructor Detail

SimpleUdpServer

public SimpleUdpServer(int port,
                       org.jboss.netty.channel.SimpleChannelUpstreamHandler program,
                       int workerCount)
Method Detail

run

public void run()

getBoundPort

public int getBoundPort()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.