| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.tribes.transport.AbstractSender
org.apache.catalina.tribes.transport.bio.BioSender
public class BioSender
Send cluster messages with only one socket. Ack and keep Alive Handling is supported
| Field Summary | |
|---|---|
| protected  XByteBuffer | ackbuf | 
| protected static StringManager | smThe string manager for this package. | 
| Constructor Summary | |
|---|---|
| BioSender() | |
| Method Summary | |
|---|---|
| protected  void | closeSocket()close socket | 
|  void | connect()Connect other cluster member receiver | 
|  void | disconnect()disconnect and close socket | 
|  java.lang.String | getInfo()Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>. | 
| protected  void | openSocket()open real socket and set time out when waitForAck is enabled is socket open return directly | 
| protected  void | pushMessage(byte[] data,
            boolean reconnect,
            boolean waitForAck)Push messages with only one socket at a time Wait for ack is needed and make auto retry when write message is failed. | 
|  void | sendMessage(byte[] data,
            boolean waitForAck)Send message | 
|  java.lang.String | toString()Name of this SockerSender | 
| protected  void | waitForAck()Wait for Acknowledgement from other server FIXME Please, not wait only for three characters, better control that the wait ack message is correct. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.apache.catalina.tribes.transport.DataSender | 
|---|
| getConnectTime, getRequestCount, isConnected, keepalive, setKeepAliveCount, setKeepAliveTime, setRxBufSize, setTimeout, setTxBufSize | 
| Field Detail | 
|---|
protected static StringManager sm
protected XByteBuffer ackbuf
| Constructor Detail | 
|---|
public BioSender()
| Method Detail | 
|---|
public java.lang.String getInfo()
<description>/<version>.
public void connect()
             throws java.io.IOException
connect in interface DataSenderconnect in class AbstractSenderjava.io.IOExceptionDataSender.connect()public void disconnect()
disconnect in interface DataSenderdisconnect in class AbstractSenderDataSender.disconnect()
public void sendMessage(byte[] data,
                        boolean waitForAck)
                 throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
protected void openSocket()
                   throws java.io.IOException
java.io.IOExceptionprotected void closeSocket()
DataSender.disconnect()
protected void pushMessage(byte[] data,
                           boolean reconnect,
                           boolean waitForAck)
                    throws java.io.IOException
data - data to send
java.io.IOExceptioncloseSocket(), 
openSocket()
protected void waitForAck()
                   throws java.io.IOException
java.io.IOException
java.net.SocketTimeoutException| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||