org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener Class Reference

Inherits fr.dyade.aaa.util.Daemon.

Inheritance diagram for org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TcpConnectionListener (ServerSocket serverSocket, TcpProxyService proxyService, int timeout)
void run ()

Protected Member Functions

void shutdown ()
void close ()

Detailed Description

Listens to the TCP connections from the JMS clients. Creates a TcpConnection for each accepted TCP connection. Opens the UserConnection with the right user's proxy.

Definition at line 55 of file TcpConnectionListener.java.


Constructor & Destructor Documentation

org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener.TcpConnectionListener ( ServerSocket  serverSocket,
TcpProxyService  proxyService,
int  timeout 
)

Creates a new connection listener

Parameters:
serverSocket the server socket to listen to
proxyService the TCP proxy service of this connection listener

Definition at line 75 of file TcpConnectionListener.java.


Member Function Documentation

void org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener.shutdown (  )  [protected, virtual]

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.

Implements fr.dyade.aaa.util.Daemon.

Definition at line 256 of file TcpConnectionListener.java.

References org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener.close().

Here is the call graph for this function:

void org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener.close (  )  [protected, virtual]

Releases any resources attached to this daemon. Be careful, its method should be called more than one time.

Implements fr.dyade.aaa.util.Daemon.

Definition at line 260 of file TcpConnectionListener.java.

Referenced by org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener.shutdown().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:20:23 2008 for joram by  doxygen 1.5.0