org.objectweb.joram.client.jms

Class Driver

Implemented Interfaces:
Runnable
Known Direct Subclasses:
LocalDriver, TcpDriver

public abstract class Driver
extends Daemon

Each Connection holds a Driver daemon for listening to asynchronous replies coming from the connected server.

Field Summary

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

canStop, group, logmon, priority, running, thread

Constructor Summary

Driver(Connection cnx)
Constructs a Driver daemon.

Method Summary

void
close()
Releases the driver's resources.
protected AbstractJmsReply
getDelivery()
Returns an AbstractJmsReply delivered by the connected server.
void
run()
The driver's listening loop.
void
shutdown()
Shuts the driver down.
String
toString()
String view of a Driver instance.

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

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

Constructor Details

Driver

protected Driver(Connection cnx)
Constructs a Driver daemon.

Parameters:
cnx - The connection the driver belongs to.

Method Details

close

public void close()
Releases the driver's resources.
Overrides:
close in interface Daemon


getDelivery

protected AbstractJmsReply getDelivery()
            throws Exception
Returns an AbstractJmsReply delivered by the connected server.


run

public void run()
The driver's listening loop.


shutdown

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


toString

public String toString()
String view of a Driver instance.
Overrides:
toString in interface Daemon


Copyright B) 2004 Scalagent - All rights reserved