org.objectweb.joram.client.jms
Class Driver

java.lang.Object
  extended byfr.dyade.aaa.util.Daemon
      extended byorg.objectweb.joram.client.jms.Driver
All Implemented Interfaces:
java.lang.Runnable
Direct Known 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
protected Driver(Connection cnx)
          Constructs a Driver daemon.
 
Method Summary
 void close()
          Releases the driver's resources.
protected abstract  AbstractJmsReply getDelivery()
          Returns an AbstractJmsReply delivered by the connected server.
 void run()
          The driver's listening loop.
abstract  void shutdown()
          Shuts the driver down.
 java.lang.String toString()
          String view of a Driver instance.
 
Methods inherited from class fr.dyade.aaa.util.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setPriority, setThreadGroup, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Driver

protected Driver(Connection cnx)
Constructs a Driver daemon.

Parameters:
cnx - The connection the driver belongs to.
Method Detail

toString

public java.lang.String toString()
String view of a Driver instance.

Overrides:
toString in class Daemon
Returns:
A string representation of this daemon.

run

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


getDelivery

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

Throws:
java.lang.Exception - If a problem occurs when getting the delivery.

shutdown

public abstract void shutdown()
Shuts the driver down.

Specified by:
shutdown in class Daemon

close

public void close()
Releases the driver's resources.

Specified by:
close in class Daemon


Copyright ? 2004 Scalagent - All rights reserved