Package net.sf.jbaobab.io

Contains core interfaces and implementations of JBaobab framework.

See:
          Description

Interface Summary
ChannelCore<P> An interface that encapsulate SelectableChannel instances, providing low level IO operations, and packet manipulations.
ChannelHandler<C extends SelectableChannel> An interface for ChannelManager that provides event notifiers.
ChannelManager<C extends SelectableChannel> A Manager interface that manages SelectableChannel with ChannelHandler.
Manager<C extends SelectableChannel,T> An interface that encapsulates Selector and its handler function.
PacketHandler<P> An interface for event driven logic handler.
Preparer<S,T> An interface that represents channel connector.
Protocol<P> An interface that implements bott Seperator and Translator.
ProtocolFactory<P> A factory interface that generates Protocol instances.
Seperator An interface for determining whether ByteBuffer is ready for seperation, seperating and terminating ByteBuffer.
SocketCore<P> A ChannelCore interface that encapsulates SocketChannel.
SocketHandlerFactory A factory interface that generates ChannelHandler instances.
SocketPool An Manager that accepts incoming connections and provides SocketPreparer interface.
SocketPreparer A SocketPreparer.NullSocketPreparer interface that connects to SocketAddress and registers connected SocketChannel to adequate ChannelManager.
Translator<P> An interface for translating ByteBuffer into object and translating object into ByteBuffer.
 

Class Summary
AbstractManager<C extends SelectableChannel,T> An abstract base implementation of Manager interface.
AbstractSeperator An abstract base implementation of Seperator interface, including AbstractSeperator.seperate(ByteBuffer) method.
ChannelReceiver<C extends SelectableChannel> A ChannelManager that manages SelectionKey.OP_READ events.
ChannelSender<C extends SelectableChannel & ByteChannel> A ChannelManager that manages SelectionKey.OP_WRITE events.
ExpirableSocketCore<P> A SocketCore that decorates enclosing SocketCore with expiration.
SimpleSocketCore<P> A SocketCore that shares same thread with ChannelManager.
SocketHandler<P> A ChannelHandler that handles SocketCore.
SocketPreparer.NullSocketPreparer A dummny implementation of SocketPreparer.
ThreadedSocketCore<P> A SocketCore that runs Protocol jobs on root executor (obtained with ExecutorPool.getRootExecutor()) and runs on PacketHandler jobs given ExecutorService.
ThreadedSocketPool A SocketPool that creates SocketHandler instance on root executor (obtained with ExecutorPool.getRootExecutor()).
ThreadedSocketPreparer A SocketPreparer that creates SocketHandler instance on root executor (obtained with ExecutorPool.getRootExecutor()).
 

Package net.sf.jbaobab.io Description

Contains core interfaces and implementations of JBaobab framework.