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 java.io.BufferedReader[]
connectionReaders
protected java.net.Socket[]
connections
Active connections.protected java.io.BufferedWriter[]
connectionWriters
protected Proxy[]
proxies
Proxies.
-
Constructor Summary
Constructors Constructor Description TcpSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close(int i)
Close connection.void
init(HeartbeatListener config)
Set the configuration parametersint
send(java.lang.String mess)
Send the message to the proxies
-
-
-
Field Detail
-
proxies
protected Proxy[] proxies
Proxies.
-
connections
protected java.net.Socket[] connections
Active connections.
-
connectionReaders
protected java.io.BufferedReader[] connectionReaders
-
connectionWriters
protected java.io.BufferedWriter[] connectionWriters
-
-
Method Detail
-
init
public void init(HeartbeatListener config) throws java.lang.Exception
Description copied from interface:Sender
Set the configuration parameters
-
send
public int send(java.lang.String mess) throws java.lang.Exception
Description copied from interface:Sender
Send the message to the proxies
-
close
protected void close(int i)
Close connection.- Parameters:
i
- The index of the connection that will be closed
-
-