org.apache.hadoop.oncrpc
Class SimpleTcpServer
java.lang.Object
org.apache.hadoop.oncrpc.SimpleTcpServer
public class SimpleTcpServer
- extends Object
Simple UDP server implemented using netty.
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
pipelineFactory
protected final org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory
rpcProgram
protected final RpcProgram rpcProgram
workerCount
protected final int workerCount
- The maximum number of I/O worker threads
SimpleTcpServer
public SimpleTcpServer(int port,
RpcProgram program,
int workercount)
- Parameters:
port
- TCP port where to start the server atprogram
- RPC program corresponding to the serverworkercount
- Number of worker threads
getPipelineFactory
public org.jboss.netty.channel.ChannelPipelineFactory getPipelineFactory()
run
public void run()
Copyright © 2009 The Apache Software Foundation