Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.server
Class StompServer<T extends StompProvider>

java.lang.Object
  extended by org.projectodd.stilts.stomp.server.StompServer<T>

public class StompServer<T extends StompProvider>
extends Object


Field Summary
static int DEFAULT_PORT
           
 
Constructor Summary
StompServer()
           
StompServer(int port)
          Construct with a port.
 
Method Summary
protected  org.jboss.netty.channel.socket.ServerSocketChannelFactory createChannelFactory()
           
protected  org.jboss.netty.bootstrap.ServerBootstrap createServerBootstrap()
           
 Executor getChannelExecutor()
           
protected  org.jboss.netty.channel.ChannelPipelineFactory getChannelPipelineFactory()
           
 Executor getMessageHandlingExector()
           
 int getPort()
          Retrieve the bind port.
 T getStompProvider()
           
 void setChannelExecutor(Executor executor)
           
protected  void setChannelPipelineFactory(org.jboss.netty.channel.ChannelPipelineFactory channelPipelineFactory)
           
 void setMessageHandlingExecutor(Executor executor)
           
 void setStompProvider(T stompProvider)
           
 void start()
          Start this server.
 void stop()
          Stop this server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

StompServer

public StompServer()

StompServer

public StompServer(int port)
Construct with a port.

Parameters:
port - The listen port to bind to.
Method Detail

getPort

public int getPort()
Retrieve the bind port.

Returns:
The bind port.

setChannelExecutor

public void setChannelExecutor(Executor executor)

getChannelExecutor

public Executor getChannelExecutor()

setMessageHandlingExecutor

public void setMessageHandlingExecutor(Executor executor)

getMessageHandlingExector

public Executor getMessageHandlingExector()

setStompProvider

public void setStompProvider(T stompProvider)

getStompProvider

public T getStompProvider()

start

public void start()
           throws Exception
Start this server.

Throws:
Throwable
Exception

createServerBootstrap

protected org.jboss.netty.bootstrap.ServerBootstrap createServerBootstrap()
                                                                   throws Exception
Throws:
Exception

setChannelPipelineFactory

protected void setChannelPipelineFactory(org.jboss.netty.channel.ChannelPipelineFactory channelPipelineFactory)

getChannelPipelineFactory

protected org.jboss.netty.channel.ChannelPipelineFactory getChannelPipelineFactory()

createChannelFactory

protected org.jboss.netty.channel.socket.ServerSocketChannelFactory createChannelFactory()

stop

public void stop()
          throws Exception
Stop this server.

Throws:
Exception
Throwable

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.