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

java.lang.Object
  extended by fr.dyade.aaa.common.Daemon
      extended by org.objectweb.joram.mom.proxies.tcp.TcpWriter
All Implemented Interfaces:
java.lang.Runnable

public class TcpWriter
extends Daemon

The activity responsible for getting the replies from the user's proxy and writing them to the socket.


Field Summary
private  IOControl ioctrl
           
static org.objectweb.util.monolog.api.Logger logger
          logger
private  AckedQueue replyQueue
           
private  TcpConnection tcpConnection
          The TCP connection that started this writer.
 
Fields inherited from class fr.dyade.aaa.common.Daemon
canStop, group, logmon, priority, running, thread
 
Constructor Summary
TcpWriter(IOControl ioctrl, AckedQueue replyQueue, TcpConnection tcpConnection)
          Creates a new writer.
 
Method Summary
protected  void close()
          Releases any resources attached to this daemon.
 void run()
           
protected  void shutdown()
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static org.objectweb.util.monolog.api.Logger logger
logger


tcpConnection

private TcpConnection tcpConnection
The TCP connection that started this writer.


ioctrl

private IOControl ioctrl

replyQueue

private AckedQueue replyQueue
Constructor Detail

TcpWriter

public TcpWriter(IOControl ioctrl,
                 AckedQueue replyQueue,
                 TcpConnection tcpConnection)
Creates a new writer.

Method Detail

run

public void run()

shutdown

protected void shutdown()
Description copied from class: Daemon
Interrupts 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 © 2010 ScalAgent D.T.. All Rights Reserved.