|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender
public class LateralTCPSender
This class is based on the log4j SocketAppender class. I'm using a different repair structure, so it is significantly different.
| Constructor Summary | |
|---|---|
LateralTCPSender(ITCPLateralCacheAttributes lca)
Constructor for the LateralTCPSender object. |
|
| Method Summary | ||
|---|---|---|
void |
dispose(String cache)
Closes connection used by all LateralTCPSenders for this lateral connection. |
|
String |
getRemoteHost()
|
|
ITCPLateralCacheAttributes |
getTcpLateralCacheAttributes()
|
|
protected void |
init(String host,
int port)
Creates a connection to a TCP server. |
|
|
send(LateralElementDescriptor<K,V> led)
Sends commands to the lateral cache listener. |
|
|
sendAndReceive(LateralElementDescriptor<K,V> led)
Sends commands to the lateral cache listener and gets a response. |
|
void |
setRemoteHost(String remoteHost)
|
|
void |
setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LateralTCPSender(ITCPLateralCacheAttributes lca)
throws IOException
lca -
IOException| Method Detail |
|---|
protected void init(String host,
int port)
throws IOException
host - port -
IOException
public <K extends Serializable,V extends Serializable> void send(LateralElementDescriptor<K,V> led)
throws IOException
led -
IOException
public <K extends Serializable,V extends Serializable> Object sendAndReceive(LateralElementDescriptor<K,V> led)
throws IOException
led -
IOException
public void dispose(String cache)
throws IOException
cache -
IOExceptionpublic void setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes)
tcpLateralCacheAttributes - The tcpLateralCacheAttributes to set.public ITCPLateralCacheAttributes getTcpLateralCacheAttributes()
public void setRemoteHost(String remoteHost)
remoteHost - The remoteHost to set.public String getRemoteHost()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||