org.objectweb.joram.mom.proxies.tcp

Class TcpConnectionListener

Implemented Interfaces:
Runnable

public class TcpConnectionListener
extends Daemon

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.

Field Summary

Fields inherited from class fr.dyade.aaa.util.Daemon

canStop, group, logmon, priority, running, thread

Constructor Summary

TcpConnectionListener(ServerSocket serverSocket, TcpProxyService proxyService)
Creates a new connection listener

Method Summary

protected void
close()
void
run()
protected void
shutdown()

Methods inherited from class fr.dyade.aaa.util.Daemon

close, finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setPriority, setThreadGroup, shutdown, start, stop, toString

Constructor Details

TcpConnectionListener

public TcpConnectionListener(ServerSocket serverSocket,
                             TcpProxyService proxyService)
Creates a new connection listener

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

Method Details

close

protected void close()
Overrides:
close in interface Daemon


run

public void run()


shutdown

protected void shutdown()
Overrides:
shutdown in interface Daemon


Copyright B) 2004 Scalagent - All rights reserved