Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » tribes » transport » nio » [javadoc | source]
org.apache.catalina.tribes.transport.nio
public class: NioReceiver [javadoc | source]
java.lang.Object
   org.apache.catalina.tribes.transport.ReceiverBase
      org.apache.catalina.tribes.transport.nio.NioReceiver

All Implemented Interfaces:
    ChannelReceiver, ListenCallback, Runnable, TaskCreator

Field Summary
protected static  Log log     
protected  StringManager sm    The string manager for this package. 
protected  LinkedList events     
protected  long lastCheck     
Fields inherited from org.apache.catalina.tribes.transport.ReceiverBase:
OPTION_DIRECT_BUFFER,  log
Constructor:
 public NioReceiver() 
Method from org.apache.catalina.tribes.transport.nio.NioReceiver Summary:
addEvent,   bind,   cancelledKey,   createRxTask,   events,   getInfo,   listen,   readDataFromSocket,   registerChannel,   run,   socketTimeouts,   start,   stop,   stopListening
Methods from org.apache.catalina.tribes.transport.ReceiverBase:
bind,   doListen,   getAddress,   getAutoBind,   getBind,   getDirect,   getExecutor,   getHost,   getListener,   getMaxTasks,   getMaxThreads,   getMessageListener,   getMinTasks,   getMinThreads,   getOoBInline,   getPort,   getRxBufSize,   getSecurePort,   getSelectorTimeout,   getSoKeepAlive,   getSoLingerOn,   getSoLingerTime,   getSoReuseAddress,   getSoTrafficClass,   getTaskPool,   getTcpListenAddress,   getTcpListenPort,   getTcpNoDelay,   getTcpSelectorTimeout,   getTcpThreadCount,   getTimeout,   getTxBufSize,   getUseBufferPool,   getWorkerThreadOptions,   heartbeat,   isListening,   messageDataReceived,   setAddress,   setAutoBind,   setBind,   setDirect,   setExecutor,   setHost,   setListen,   setListener,   setLog,   setMaxTasks,   setMaxThreads,   setMessageListener,   setMinTasks,   setMinThreads,   setOoBInline,   setPool,   setPort,   setRxBufSize,   setSecurePort,   setSelectorTimeout,   setSoKeepAlive,   setSoLingerOn,   setSoLingerTime,   setSoReuseAddress,   setSoTrafficClass,   setTcpListenAddress,   setTcpListenPort,   setTcpNoDelay,   setTcpSelectorTimeout,   setTcpThreadCount,   setTimeout,   setTxBufSize,   setUseBufferPool,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.tribes.transport.nio.NioReceiver Detail:
 public  void addEvent(Runnable event) 
 protected  void bind() throws IOException 
 public static  void cancelledKey(SelectionKey key) 
 public AbstractRxTask createRxTask() 
 public  void events() 
 public String getInfo() 
    Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
 protected  void listen() throws Exception 
    get data from channel and store in byte array send it to cluster
 protected  void readDataFromSocket(SelectionKey key) throws Exception 
    Sample data handler method for a channel with data ready to read.
 protected  void registerChannel(Selector selector,
    SelectableChannel channel,
    int ops,
    Object attach) throws Exception 
    Register the given channel with the given selector for the given operations of interest
 public  void run() 
    Start thread and listen
 protected  void socketTimeouts() 
 public  void start() throws IOException 
    start cluster receiver
 public  void stop() 
 protected  void stopListening() 
    Close Selector.