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()
Server
public void close()
Server
public int getPort()
Server
public void join() throws InterruptedException
Server
join
in interface Server
InterruptedException
public int getNumActiveConnections()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.