org.apache.geronimo.gshell.whisper.transport.base
Class BaseService<T extends org.apache.mina.common.IoService>

java.lang.Object
  extended by org.apache.geronimo.gshell.whisper.transport.base.BaseService<T>
Direct Known Subclasses:
BaseTransport, BaseTransportServer

public abstract class BaseService<T extends org.apache.mina.common.IoService>
extends Object

Common bits for Transport and TransportServer implementations.

Version:
$Rev: 580715 $ $Date: 2007-09-30 05:46:25 -0700 (Sun, 30 Sep 2007) $

Field Summary
protected  AddressFactory addressFactory
           
protected  org.slf4j.Logger log
           
 
Constructor Summary
protected BaseService(AddressFactory addressFactory)
           
 
Method Summary
 void close()
           
protected  void configure(org.apache.mina.common.DefaultIoFilterChainBuilder chain)
           
protected  void configure(org.apache.mina.common.IoService service)
           
protected  void configure(org.apache.mina.common.IoServiceConfig config)
           
protected  void configure(org.apache.mina.common.IoSession session)
           
protected  org.apache.mina.common.IoHandler createHandler()
           
protected  org.apache.mina.common.ThreadModel createThreadModel()
           
protected  void ensureOpened()
           
protected abstract  BaseConfiguration getBaseConfiguration()
           
protected  org.apache.mina.common.IoHandler getHandler()
           
protected  org.apache.mina.common.ThreadModel getThreadModel()
           
 boolean isClosed()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final transient org.slf4j.Logger log

addressFactory

protected AddressFactory addressFactory
Constructor Detail

BaseService

protected BaseService(AddressFactory addressFactory)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getBaseConfiguration

protected abstract BaseConfiguration getBaseConfiguration()

createHandler

protected org.apache.mina.common.IoHandler createHandler()
                                                  throws Exception
Throws:
Exception

getHandler

protected org.apache.mina.common.IoHandler getHandler()
                                               throws Exception
Throws:
Exception

createThreadModel

protected org.apache.mina.common.ThreadModel createThreadModel()
                                                        throws Exception
Throws:
Exception

getThreadModel

protected org.apache.mina.common.ThreadModel getThreadModel()
                                                     throws Exception
Throws:
Exception

configure

protected void configure(org.apache.mina.common.IoService service)
                  throws Exception
Throws:
Exception

configure

protected void configure(org.apache.mina.common.IoServiceConfig config)
                  throws Exception
Throws:
Exception

configure

protected void configure(org.apache.mina.common.DefaultIoFilterChainBuilder chain)
                  throws Exception
Throws:
Exception

configure

protected void configure(org.apache.mina.common.IoSession session)
                  throws Exception
Throws:
Exception

isClosed

public boolean isClosed()

ensureOpened

protected void ensureOpened()

close

public void close()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.