Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::laser::client::impl::services::selection::HeartbeatHelper Class Reference

List of all members.

Public Member Functions

 HeartbeatHelper (AlarmSelectionListener selectionListener) throws LaserException
void startHeartbeatCheck () throws LaserException
void stopHeartbeatCheck () throws LaserException
void onException (MOMException e)

Private Member Functions

void initHeartbeatCheck () throws LaserException, LaserConnectionException
SubscriptionListener getHeartbeatListener ()
TimerTask createHeartbeatTimerTask ()
void checkHeartbeat ()
synchronized void resetHeartbeatReceptionTime ()
synchronized long getHeartbeatReceptionTime ()
synchronized void setHeartbeatReceived (boolean value)
synchronized boolean isHeartbeatReceived ()
Subscriber getSubscriber () throws LaserException

Private Attributes

SubscriptionListener heartbeatListener = null
AlarmSelectionListener selectionListener = null
Timer timer = null
String heartbeatTopic = null
long heartbeatFrequency = -1
long heartbeatCheckFrequency = -1
boolean heartbeatReceived = false
long heartbeatReceptionTime = -1
Subscriber cmwSubscriber
boolean cmwConnected = true
AlarmService m_laser

Static Private Attributes

final Logger LOGGER = Logger.getLogger(HeartbeatHelper.class.getName())
final String HEARTBEAT_PROPERTY = "HEARTBEAT"
final String SQL_FILTER = "HEARTBEAT = TRUE"

Detailed Description

This class subscribes to the heartbeat from the business layer and verifies that it arrives in time. If it doesn't the AlarmSelectionListener is informed. It is a helper class for the AlarmSelectionHandler.

Version:
Revision
1.5
Date
2006/09/25 08:52:36
Author:
Katarina Sigerud


Constructor & Destructor Documentation

cern::laser::client::impl::services::selection::HeartbeatHelper::HeartbeatHelper AlarmSelectionListener  selectionListener  )  throws LaserException [inline]
 

Parameters:
sessionEJB 
Exceptions:
LaserException 
LaserException 
LaserConnectionException 


Member Function Documentation

void cern::laser::client::impl::services::selection::HeartbeatHelper::checkHeartbeat  )  [inline, private]
 

TimerTask cern::laser::client::impl::services::selection::HeartbeatHelper::createHeartbeatTimerTask  )  [inline, private]
 

SubscriptionListener cern::laser::client::impl::services::selection::HeartbeatHelper::getHeartbeatListener  )  [inline, private]
 

synchronized long cern::laser::client::impl::services::selection::HeartbeatHelper::getHeartbeatReceptionTime  )  [inline, private]
 

Subscriber cern::laser::client::impl::services::selection::HeartbeatHelper::getSubscriber  )  throws LaserException [inline, private]
 

void cern::laser::client::impl::services::selection::HeartbeatHelper::initHeartbeatCheck  )  throws LaserException, LaserConnectionException [inline, private]
 

Exceptions:
LaserException 
LaserConnectionException 

synchronized boolean cern::laser::client::impl::services::selection::HeartbeatHelper::isHeartbeatReceived  )  [inline, private]
 

void cern::laser::client::impl::services::selection::HeartbeatHelper::onException MOMException  e  )  [inline]
 

synchronized void cern::laser::client::impl::services::selection::HeartbeatHelper::resetHeartbeatReceptionTime  )  [inline, private]
 

synchronized void cern::laser::client::impl::services::selection::HeartbeatHelper::setHeartbeatReceived boolean  value  )  [inline, private]
 

void cern::laser::client::impl::services::selection::HeartbeatHelper::startHeartbeatCheck  )  throws LaserException [inline]
 

void cern::laser::client::impl::services::selection::HeartbeatHelper::stopHeartbeatCheck  )  throws LaserException [inline]
 


Member Data Documentation

boolean cern::laser::client::impl::services::selection::HeartbeatHelper::cmwConnected = true [private]
 

Subscriber cern::laser::client::impl::services::selection::HeartbeatHelper::cmwSubscriber [private]
 

final String cern::laser::client::impl::services::selection::HeartbeatHelper::HEARTBEAT_PROPERTY = "HEARTBEAT" [static, private]
 

long cern::laser::client::impl::services::selection::HeartbeatHelper::heartbeatCheckFrequency = -1 [private]
 

long cern::laser::client::impl::services::selection::HeartbeatHelper::heartbeatFrequency = -1 [private]
 

SubscriptionListener cern::laser::client::impl::services::selection::HeartbeatHelper::heartbeatListener = null [private]
 

boolean cern::laser::client::impl::services::selection::HeartbeatHelper::heartbeatReceived = false [private]
 

long cern::laser::client::impl::services::selection::HeartbeatHelper::heartbeatReceptionTime = -1 [private]
 

String cern::laser::client::impl::services::selection::HeartbeatHelper::heartbeatTopic = null [private]
 

final Logger cern::laser::client::impl::services::selection::HeartbeatHelper::LOGGER = Logger.getLogger(HeartbeatHelper.class.getName()) [static, private]
 

AlarmService cern::laser::client::impl::services::selection::HeartbeatHelper::m_laser [private]
 

AlarmSelectionListener cern::laser::client::impl::services::selection::HeartbeatHelper::selectionListener = null [private]
 

final String cern::laser::client::impl::services::selection::HeartbeatHelper::SQL_FILTER = "HEARTBEAT = TRUE" [static, private]
 

Timer cern::laser::client::impl::services::selection::HeartbeatHelper::timer = null [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:54 2009 for ACS Java API by doxygen 1.3.8