org.apache.hadoop.oncrpc
Class SimpleUdpServer
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SimpleUdpServer
public SimpleUdpServer(int port,
org.jboss.netty.channel.SimpleChannelUpstreamHandler program,
int workerCount)
run
public void run()
getBoundPort
public int getBoundPort()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.