org.objectweb.joram.mom.proxies.tcp
Class TcpReader

java.lang.Object
  extended byfr.dyade.aaa.util.Daemon
      extended byorg.objectweb.joram.mom.proxies.tcp.TcpReader
All Implemented Interfaces:
java.lang.Runnable

public class TcpReader
extends Daemon

The activity responsible for reading the requests from the socket and invoke the user's proxy.


Field Summary
 
Fields inherited from class fr.dyade.aaa.util.Daemon
canStop, group, logmon, priority, running, thread
 
Constructor Summary
TcpReader(IOControl ioctrl, AgentId proxyId, TcpConnection tcpConnection, boolean closeConnection)
          Creates a new reader.
 
Method Summary
protected  void close()
          Releases any resources attached to this daemon.
 void run()
           
protected  void shutdown()
          Interupts a thread that waits for long periods.
 
Methods inherited from class fr.dyade.aaa.util.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setPriority, setThreadGroup, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcpReader

public TcpReader(IOControl ioctrl,
                 AgentId proxyId,
                 TcpConnection tcpConnection,
                 boolean closeConnection)
          throws java.io.IOException
Creates a new reader.

Parameters:
tcpConnection - the TCP connection
Method Detail

run

public void run()

shutdown

protected void shutdown()
Description copied from class: Daemon
Interupts 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.

Specified by:
shutdown in class Daemon

close

protected void close()
Description copied from class: Daemon
Releases any resources attached to this daemon. Be careful, its method should be called more than one time.

Specified by:
close in class Daemon


Copyright ? 2004 Scalagent - All rights reserved