|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.component.netty.SingleUDPNettyServerBootstrapFactory
public class SingleUDPNettyServerBootstrapFactory
A NettyServerBootstrapFactory which is used by a single consumer (not shared).
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOG
|
| Fields inherited from class org.apache.camel.support.ServiceSupport |
|---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Constructor Summary | |
|---|---|
SingleUDPNettyServerBootstrapFactory()
|
|
| Method Summary | |
|---|---|
void |
addChannel(org.jboss.netty.channel.Channel channel)
When a new Channel is opened. |
void |
addConsumer(NettyConsumer consumer)
When a NettyConsumer is added and uses this bootstrap factory. |
protected void |
doResume()
|
protected void |
doStart()
|
protected void |
doStop()
|
protected void |
doSuspend()
|
void |
init(org.apache.camel.CamelContext camelContext,
NettyServerBootstrapConfiguration configuration,
org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
Initializes this non-shared NettyServerBootstrapFactory. |
void |
init(ThreadFactory threadFactory,
NettyServerBootstrapConfiguration configuration,
org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
Initializes this shared NettyServerBootstrapFactory. |
void |
removeChannel(org.jboss.netty.channel.Channel channel)
When a Channel is closed. |
void |
removeConsumer(NettyConsumer consumer)
When a NettyConsumer is removed and no longer using this bootstrap factory. |
protected void |
startServerBootstrap()
|
protected void |
stopServerBootstrap()
|
| Methods inherited from class org.apache.camel.support.ServiceSupport |
|---|
doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.camel.SuspendableService |
|---|
isSuspended, resume, suspend |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOG
| Constructor Detail |
|---|
public SingleUDPNettyServerBootstrapFactory()
| Method Detail |
|---|
public void init(org.apache.camel.CamelContext camelContext,
NettyServerBootstrapConfiguration configuration,
org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
NettyServerBootstrapFactoryNettyServerBootstrapFactory.
init in interface NettyServerBootstrapFactorycamelContext - the CamelContext for non-shared bootstrap factoryconfiguration - the bootstrap configurationpipelineFactory - the pipeline factory
public void init(ThreadFactory threadFactory,
NettyServerBootstrapConfiguration configuration,
org.jboss.netty.channel.ChannelPipelineFactory pipelineFactory)
NettyServerBootstrapFactoryNettyServerBootstrapFactory.
init in interface NettyServerBootstrapFactorythreadFactory - the thread factory to use for shared bootstrap factoryconfiguration - the bootstrap configurationpipelineFactory - the pipeline factorypublic void addChannel(org.jboss.netty.channel.Channel channel)
NettyServerBootstrapFactoryChannel is opened.
addChannel in interface NettyServerBootstrapFactorypublic void removeChannel(org.jboss.netty.channel.Channel channel)
NettyServerBootstrapFactoryChannel is closed.
removeChannel in interface NettyServerBootstrapFactorypublic void addConsumer(NettyConsumer consumer)
NettyServerBootstrapFactoryNettyConsumer is added and uses this bootstrap factory.
addConsumer in interface NettyServerBootstrapFactorypublic void removeConsumer(NettyConsumer consumer)
NettyServerBootstrapFactoryNettyConsumer is removed and no longer using this bootstrap factory.
removeConsumer in interface NettyServerBootstrapFactory
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportException
protected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportException
protected void doResume()
throws Exception
doResume in class org.apache.camel.support.ServiceSupportException
protected void doSuspend()
throws Exception
doSuspend in class org.apache.camel.support.ServiceSupportException
protected void startServerBootstrap()
throws UnknownHostException,
SocketException
UnknownHostException
SocketExceptionprotected void stopServerBootstrap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||