Package org.apache.catalina.ha.backend
Class TcpSender
- java.lang.Object
-
- org.apache.catalina.ha.backend.TcpSender
-
-
Field Summary
Fields Modifier and Type Field Description protected BufferedReader[]connectionReadersprotected Socket[]connectionsActive connections.protected BufferedWriter[]connectionWritersprotected Proxy[]proxiesProxies.
-
Constructor Summary
Constructors Constructor Description TcpSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose(int i)Close connection.voidinit(HeartbeatListener config)Set the configuration parametersintsend(String mess)Send the message to the proxies
-
-
-
Field Detail
-
proxies
protected Proxy[] proxies
Proxies.
-
connections
protected Socket[] connections
Active connections.
-
connectionReaders
protected BufferedReader[] connectionReaders
-
connectionWriters
protected BufferedWriter[] connectionWriters
-
-
Method Detail
-
init
public void init(HeartbeatListener config) throws Exception
Description copied from interface:SenderSet the configuration parameters
-
send
public int send(String mess) throws Exception
Description copied from interface:SenderSend the message to the proxies
-
close
protected void close(int i)
Close connection.- Parameters:
i- The index of the connection that will be closed
-
-