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

All Implemented Interfaces:
    IDataSender

Send cluster messages from a Message queue with only one socket. Ack and keep Alive Handling is supported.
Fields inherited from org.apache.catalina.cluster.tcp.DataSender:
sm,  nrOfRequests,  totalBytes,  connectCounter,  disconnectCounter,  missingAckCounter,  dataResendCounter,  dataFailureCounter,  doProcessingStats,  processingTime,  minProcessingTime,  maxProcessingTime,  doWaitAckStats,  waitAckTime,  minWaitAckTime,  maxWaitAckTime,  keepAliveConnectTime,  keepAliveCount
Constructor:
 public AsyncSocketSender(String domain,
    InetAddress host,
    int port) 
    start background thread to push incomming cluster messages to replication node
    Parameters:
    domain - replication cluster domain (session domain)
    host - replication node tcp address
    port - replication node tcp port
Method from org.apache.catalina.cluster.tcp.AsyncSocketSender Summary:
checkThread,   connect,   disconnect,   getInQueueCounter,   getInfo,   getOutQueueCounter,   getQueueSize,   getQueuedNrOfBytes,   resetStatistics,   sendMessage,   stopThread,   toString
Methods from org.apache.catalina.cluster.tcp.DataSender:
addProcessingStats,   addStats,   addWaitAckStats,   checkKeepAlive,   closeSocket,   connect,   createSocket,   disconnect,   getAckTimeout,   getAddress,   getAvgMessageSize,   getAvgProcessingTime,   getAvgWaitAckTime,   getConnectCounter,   getDataFailureCounter,   getDataResendCounter,   getDisconnectCounter,   getDomain,   getInfo,   getKeepAliveConnectTime,   getKeepAliveCount,   getKeepAliveMaxRequestCount,   getKeepAliveTimeout,   getMaxProcessingTime,   getMaxWaitAckTime,   getMinProcessingTime,   getMinWaitAckTime,   getMissingAckCounter,   getNrOfRequests,   getPort,   getProcessingTime,   getSocket,   getSocketCloseCounter,   getSocketOpenCounter,   getSocketOpenFailureCounter,   getSuspect,   getTotalBytes,   getWaitAckTime,   isConnected,   isDoProcessingStats,   isDoWaitAckStats,   isMessageTransferStarted,   isResend,   isSuspect,   isWaitForAck,   openSocket,   pushMessage,   resetStatistics,   sendMessage,   setAckTimeout,   setAddress,   setDoProcessingStats,   setDoWaitAckStats,   setDomain,   setKeepAliveMaxRequestCount,   setKeepAliveTimeout,   setPort,   setResend,   setSocket,   setSocketConnected,   setSuspect,   setWaitForAck,   toString,   waitForAck,   writeData
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.cluster.tcp.AsyncSocketSender Detail:
 protected  void checkThread() 
    Start Queue thread as daemon
 public  void connect() throws IOException 
 public  void disconnect() 
    Disconnect socket ad stop queue thread
 public long getInQueueCounter() 
 public String getInfo() 
    Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
 public long getOutQueueCounter() 
 public int getQueueSize() 
 public long getQueuedNrOfBytes() 
 public synchronized  void resetStatistics() 
 public  void sendMessage(ClusterData data) throws IOException 
    Send message to queue for later sending
 protected  void stopThread() 
    stop queue worker thread
 public String toString() 
    Name of this SockerSender