| Constructor and Description | 
|---|
NettyServer(Responder responder,
           InetSocketAddress addr)  | 
NettyServer(Responder responder,
           InetSocketAddress addr,
           org.jboss.netty.channel.ChannelFactory channelFactory)  | 
NettyServer(Responder responder,
           InetSocketAddress addr,
           org.jboss.netty.channel.ChannelFactory channelFactory,
           org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory,
           org.jboss.netty.handler.execution.ExecutionHandler executionHandler)  | 
NettyServer(Responder responder,
           InetSocketAddress addr,
           org.jboss.netty.channel.ChannelFactory channelFactory,
           org.jboss.netty.handler.execution.ExecutionHandler executionHandler)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Stop this server. 
 | 
int | 
getNumActiveConnections()  | 
int | 
getPort()
The port this server runs on. 
 | 
void | 
join()
Wait for this server to exit. 
 | 
void | 
start()
Start this server. 
 | 
public NettyServer(Responder responder, InetSocketAddress addr)
public NettyServer(Responder responder, InetSocketAddress addr, org.jboss.netty.channel.ChannelFactory channelFactory)
public NettyServer(Responder responder, InetSocketAddress addr, org.jboss.netty.channel.ChannelFactory channelFactory, org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory, org.jboss.netty.handler.execution.ExecutionHandler executionHandler)
executionHandler - if not null, will be inserted into the Netty
                         pipeline. Use this when your responder does
                         long, non-cpu bound processing (see Netty's
                         ExecutionHandler javadoc).pipelineFactory - Avro-related handlers will be added on top of
                         what this factory createspublic NettyServer(Responder responder, InetSocketAddress addr, org.jboss.netty.channel.ChannelFactory channelFactory, org.jboss.netty.handler.execution.ExecutionHandler executionHandler)
executionHandler - if not null, will be inserted into the Netty
                         pipeline. Use this when your responder does
                         long, non-cpu bound processing (see Netty's
                         ExecutionHandler javadoc).public void start()
Serverpublic void close()
Serverpublic int getPort()
Serverpublic void join()
          throws InterruptedException
Serverjoin in interface ServerInterruptedExceptionpublic int getNumActiveConnections()
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.