Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » cluster » tcp » [javadoc | source]
org.apache.catalina.cluster.tcp
public class: ReplicationListener [javadoc | source]
java.lang.Object
   org.apache.catalina.cluster.tcp.ClusterReceiverBase
      org.apache.catalina.cluster.tcp.ReplicationListener

All Implemented Interfaces:
    ListenCallback, Runnable, ClusterReceiver

FIXME i18n log messages FIXME jmx support
Fields inherited from org.apache.catalina.cluster.tcp.ClusterReceiverBase:
log,  sm,  doListen,  totalReceivedBytes,  doReceivedProcessingStats,  receivedProcessingTime,  minReceivedProcessingTime,  maxReceivedProcessingTime
Constructor:
 public ReplicationListener() 
Method from org.apache.catalina.cluster.tcp.ReplicationListener Summary:
getInfo,   getInterestOpsMutex,   getTcpSelectorTimeout,   getTcpThreadCount,   listen,   readDataFromSocket,   registerChannel,   setTcpSelectorTimeout,   setTcpThreadCount,   start,   stopListening
Methods from org.apache.catalina.cluster.tcp.ClusterReceiverBase:
addReceivedProcessingStats,   deserialize,   getAvgReceivedProcessingTime,   getAvgTotalReceivedBytes,   getBind,   getCatalinaCluster,   getHost,   getLastChecked,   getMaxReceivedProcessingTime,   getMinReceivedProcessingTime,   getNrOfMsgsReceived,   getObjectName,   getPort,   getReceivedProcessingTime,   getReceivedTime,   getTcpListenAddress,   getTcpListenPort,   getTotalReceivedBytes,   isCompress,   isDoListen,   isDoReceivedProcessingStats,   isSendAck,   listen,   messageDataReceived,   registerReceiverMBean,   resetStatistics,   run,   sendAck,   setBind,   setCatalinaCluster,   setCompress,   setDoReceivedProcessingStats,   setObjectName,   setSendAck,   setTcpListenAddress,   setTcpListenPort,   start,   stop,   stopListening,   unregisterRecevierMBean
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.cluster.tcp.ReplicationListener Detail:
 public String getInfo() 
    Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
 public Object getInterestOpsMutex() 
 public long getTcpSelectorTimeout() 
 public int getTcpThreadCount() 
 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 setTcpSelectorTimeout(long tcpSelectorTimeout) 
 public  void setTcpThreadCount(int tcpThreadCount) 
 public  void start() 
    start cluster receiver
 protected  void stopListening() 
    Close Selector.