|
|||||||||||
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
This class is based on the log4j SocketAppender class. I'm using a differnet repair structure, so it is significant;y different.
Constructor Summary | |
LateralTCPSender(ITCPLateralCacheAttributes lca)
Constructor for the LateralTCPSender object |
Method Summary | |
void |
dispose(java.lang.String cache)
Closes connection used by all LateralTCPSenders for this lateral conneciton. |
java.lang.String |
getRemoteHost()
|
ITCPLateralCacheAttributes |
getTcpLateralCacheAttributes()
|
protected void |
init(java.lang.String host,
int port)
Creates a connection to a TCP server. |
static void |
main(java.lang.String[] args)
This is a Testing Method. |
void |
send(LateralElementDescriptor led)
Sends commands to the lateral cache listener. |
ICacheElement |
sendAndReceive(LateralElementDescriptor led)
Sends commands to the lateral cache listener and gets a response. |
void |
setRemoteHost(java.lang.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 java.io.IOException
lca
-
java.io.IOException
Method Detail |
protected void init(java.lang.String host, int port) throws java.io.IOException
host
- port
-
java.io.IOException
public void send(LateralElementDescriptor led) throws java.io.IOException
led
-
java.io.IOException
public ICacheElement sendAndReceive(LateralElementDescriptor led) throws java.io.IOException
led
-
java.io.IOException
public void dispose(java.lang.String cache) throws java.io.IOException
cache
-
java.io.IOException
public void setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes)
tcpLateralCacheAttributes
- The tcpLateralCacheAttributes to set.public ITCPLateralCacheAttributes getTcpLateralCacheAttributes()
public void setRemoteHost(java.lang.String remoteHost)
remoteHost
- The remoteHost to set.public java.lang.String getRemoteHost()
public static void main(java.lang.String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |