|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.cluster.tcp.DataSender org.apache.catalina.cluster.tcp.AsyncSocketSender
Send cluster messages from a Message queue with only one socket. Ack and keep Alive Handling is supported.
Field Summary |
Fields inherited from class org.apache.catalina.cluster.tcp.DataSender |
connectCounter, createTime, dataFailureCounter, dataResendCounter, disconnectCounter, doProcessingStats, doWaitAckStats, keepAliveConnectTime, keepAliveCount, maxProcessingTime, maxWaitAckTime, minProcessingTime, minWaitAckTime, missingAckCounter, nrOfRequests, processingTime, sm, totalBytes, waitAckTime |
Constructor Summary | |
AsyncSocketSender(java.lang.String domain,
java.net.InetAddress host,
int port)
start background thread to push incomming cluster messages to replication node |
Method Summary | |
protected void |
checkThread()
Start Queue thread as daemon |
void |
connect()
Connect other cluster member receiver |
void |
disconnect()
Disconnect socket ad stop queue thread |
java.lang.String |
getInfo()
Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version> . |
long |
getInQueueCounter()
|
long |
getOutQueueCounter()
|
long |
getQueuedNrOfBytes()
|
int |
getQueueSize()
|
void |
resetStatistics()
Reset sender statistics |
void |
sendMessage(ClusterData data)
Send message to queue for later sending |
protected void |
stopThread()
stop queue worker thread |
java.lang.String |
toString()
Name of this SockerSender |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AsyncSocketSender(java.lang.String domain, java.net.InetAddress host, int port)
domain
- replication cluster domain (session domain)host
- replication node tcp addressport
- replication node tcp portMethod Detail |
public java.lang.String getInfo()
<description>/<version>
.
getInfo
in class DataSender
public long getInQueueCounter()
public long getOutQueueCounter()
public int getQueueSize()
public long getQueuedNrOfBytes()
public void connect() throws java.io.IOException
DataSender
connect
in interface IDataSender
connect
in class DataSender
java.io.IOException
IDataSender.connect()
public void disconnect()
disconnect
in interface IDataSender
disconnect
in class DataSender
IDataSender.disconnect()
public void sendMessage(ClusterData data) throws java.io.IOException
sendMessage
in interface IDataSender
sendMessage
in class DataSender
java.io.IOException
DataSender.pushMessage(ClusterData)
public void resetStatistics()
DataSender
resetStatistics
in class DataSender
public java.lang.String toString()
toString
in class DataSender
protected void checkThread()
protected void stopThread()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |