org.objectweb.joram.client.jms.tcp

Class TcpDriver

Implemented Interfaces:
Runnable

public class TcpDriver
extends Driver

A TcpDriver gets server deliveries coming through a TCP socket.

Field Summary

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

canStop, group, logmon, priority, running, thread

Constructor Summary

TcpDriver(Connection cnx, ReliableTcpClient tcpClient)
Constructs a TcpDriver daemon.

Method Summary

protected AbstractJmsReply
getDelivery()
Returns an AbstractJmsReply delivered by the connected server.
void
shutdown()
Shuts down the driver.

Methods inherited from class org.objectweb.joram.client.jms.Driver

close, getDelivery, run, shutdown, toString

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

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

Constructor Details

TcpDriver

public TcpDriver(Connection cnx,
                 ReliableTcpClient tcpClient)
Constructs a TcpDriver daemon.

Parameters:
cnx - The connection the driver belongs to.

Method Details

getDelivery

protected AbstractJmsReply getDelivery()
            throws Exception
Returns an AbstractJmsReply delivered by the connected server.
Overrides:
getDelivery in interface Driver


shutdown

public void shutdown()
Shuts down the driver.
Overrides:
shutdown in interface Driver


Copyright B) 2004 Scalagent - All rights reserved