Class TcpReader
- java.lang.Object
-
- fr.dyade.aaa.common.Daemon
-
- org.objectweb.joram.mom.proxies.tcp.TcpReader
-
-
Field Summary
Fields Modifier and Type Field Description private booleancloseConnectionprivate ConnectionContextctxprivate static booleanDEBUGprivate IOControlioctrlprivate static Loggerloggerprivate AgentIdproxyIdprivate TcpConnectiontcpConnectionThe TCP connection that started this reader.
-
Constructor Summary
Constructors Constructor Description TcpReader(IOControl ioctrl, AgentId proxyId, TcpConnection tcpConnection, boolean closeConnection, ConnectionContext ctx)Creates a new reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose()Releases any resources attached to this daemon.voidrun()protected voidshutdown()Interrupts a thread that waits for long periods.-
Methods inherited from class fr.dyade.aaa.common.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop, toString
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
tcpConnection
private TcpConnection tcpConnection
The TCP connection that started this reader.
-
ioctrl
private IOControl ioctrl
-
proxyId
private AgentId proxyId
-
closeConnection
private boolean closeConnection
-
ctx
private ConnectionContext ctx
-
-
Constructor Detail
-
TcpReader
public TcpReader(IOControl ioctrl, AgentId proxyId, TcpConnection tcpConnection, boolean closeConnection, ConnectionContext ctx)
Creates a new reader.
-
-
Method Detail
-
run
public void run()
-
shutdown
protected void shutdown()
Description copied from class:DaemonInterrupts a thread that waits for long periods. In some cases, we must use application specific tricks. For example, if a thread is waiting on a known socket, we have to close the socket to cause the thread to return immediately. Unfortunately, there really isn't any technique that works in general.
-
-