org.objectweb.joram.mom.dest.jmsbridge
Class JMSBridgeModule.ReconnectionDaemon

java.lang.Object
  extended by fr.dyade.aaa.common.Daemon
      extended by org.objectweb.joram.mom.dest.jmsbridge.JMSBridgeModule.ReconnectionDaemon
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
JMSBridgeModule

protected class JMSBridgeModule.ReconnectionDaemon
extends Daemon

The ReconnectionDaemon thread is responsible for reconnecting the bridge module with the foreign JMS server in case of disconnection.


Field Summary
private  long interval1
          Retry interval (in milliseconds) of the first step.
private  long interval2
          Retry interval (in milliseconds) of the second step.
private  long interval3
          Retry interval (in milliseconds) of the third step.
 
Fields inherited from class fr.dyade.aaa.common.Daemon
canStop, group, logmon, priority, running, thread
 
Constructor Summary
protected JMSBridgeModule.ReconnectionDaemon()
          Constructs a ReconnectionDaemon thread.
 
Method Summary
 void close()
          Releases the daemon's resources.
protected  void reconnect()
          Notifies the daemon to start reconnecting.
 void run()
          The daemon's loop.
 void shutdown()
          Shuts the daemon down.
 
Methods inherited from class fr.dyade.aaa.common.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

interval1

private long interval1
Retry interval (in milliseconds) of the first step.


interval2

private long interval2
Retry interval (in milliseconds) of the second step.


interval3

private long interval3
Retry interval (in milliseconds) of the third step.

Constructor Detail

JMSBridgeModule.ReconnectionDaemon

protected JMSBridgeModule.ReconnectionDaemon()
Constructs a ReconnectionDaemon thread.

Method Detail

reconnect

protected void reconnect()
Notifies the daemon to start reconnecting.


run

public void run()
The daemon's loop.


shutdown

public void shutdown()
Shuts the daemon down.

Specified by:
shutdown in class Daemon

close

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

Specified by:
close in class Daemon


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.