|
Joram 5.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.mom.proxies.tcp.TcpConnection
public class TcpConnection
Handles the TCP connection. Starts the reader and writer threads responsible for
reading the requests and writing the replies.
Calls the UserConnection
in order to invoke the user's proxy and get
its replies.
TcpProxyService
,
TcpConnectionListener
Field Summary | |
---|---|
static org.objectweb.util.monolog.api.Logger |
logger
logger |
Constructor Summary | |
---|---|
TcpConnection(IOControl ioctrl,
ReliableConnectionContext ctx,
fr.dyade.aaa.agent.AgentId proxyId,
TcpProxyService proxyService,
Identity identity)
Creates a new TCP connection. |
Method Summary | |
---|---|
void |
close()
Stops the connection reader and writer threads. |
java.lang.String |
getAddress()
Gets the socket address used by the connection. |
java.util.Date |
getCreationDate()
Gets connection creation date. |
int |
getKey()
|
fr.dyade.aaa.agent.AgentId |
getProxyId()
|
long |
getReceivedCount()
Gets the number of replies received on the connection. |
long |
getSentCount()
Gets the number of requests sent on the connection. |
java.lang.String |
getUserName()
Gets connected user's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
---|
public TcpConnection(IOControl ioctrl, ReliableConnectionContext ctx, fr.dyade.aaa.agent.AgentId proxyId, TcpProxyService proxyService, Identity identity) throws java.io.IOException
ioctrl
- ctx
- proxyId
- proxyService
- the TCP proxy serviceidentity
-
java.io.IOException
Method Detail |
---|
public final fr.dyade.aaa.agent.AgentId getProxyId()
public final int getKey()
public void close()
close
in interface TcpConnectionMBean
public java.lang.String getUserName()
TcpConnectionMBean
getUserName
in interface TcpConnectionMBean
public java.lang.String getAddress()
TcpConnectionMBean
getAddress
in interface TcpConnectionMBean
public java.util.Date getCreationDate()
TcpConnectionMBean
getCreationDate
in interface TcpConnectionMBean
public long getReceivedCount()
TcpConnectionMBean
getReceivedCount
in interface TcpConnectionMBean
public long getSentCount()
TcpConnectionMBean
getSentCount
in interface TcpConnectionMBean
|
Joram 5.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |