public class LateralTCPSender
extends java.lang.Object
Constructor and Description |
---|
LateralTCPSender(ITCPLateralCacheAttributes lca)
Constructor for the LateralTCPSender object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
send(LateralElementDescriptor led)
Sends commands to the lateral cache listener.
|
java.lang.Object |
sendAndReceive(LateralElementDescriptor led)
Sends commands to the lateral cache listener and gets a response.
|
void |
setRemoteHost(java.lang.String remoteHost) |
void |
setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes) |
public LateralTCPSender(ITCPLateralCacheAttributes lca) throws java.io.IOException
lca
- java.io.IOException
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 java.lang.Object 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()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.