
Public Member Functions | |
| void | setCoreService (CoreServiceImpl coreService) |
| void | setTopicConnectionFactory (TopicConnectionFactory topicConnectionFactory) |
| void | start () |
| void | stop () |
Private Member Functions | |
| void | sendHeartbeat () |
| TopicSession | getTopicSession () throws JMSException, NamingException |
| TopicConnection | getTopicConnection () throws JMSException, NamingException |
| TopicPublisher | getTopicPublisher () throws JMSException, NamingException |
| void | close () |
| TimerTask | createTimerTask () |
Private Attributes | |
| Timer | timer = null |
| TopicConnection | connection = null |
| TopicSession | session = null |
| TopicPublisher | publisher = null |
| CoreServiceImpl | coreService |
| TopicConnectionFactory | topicConnectionFactory |
Static Private Attributes | |
| static final Logger | LOGGER = Logger.getLogger(HeartbeatImpl.class.getName()) |
| static final String | HEARTBEAT_PROPERTY = "HEARTBEAT" |
| static final String | HEARTBEAT_MESSAGE_TEXT = "HEARTBEAT MESSAGE" |
| void cern::laser::business::pojo::HeartbeatImpl::close | ( | ) | [inline, private] |
References connection, LOGGER, publisher, and session.
Referenced by sendHeartbeat().
| TimerTask cern::laser::business::pojo::HeartbeatImpl::createTimerTask | ( | ) | [inline, private] |
References LOGGER, and sendHeartbeat().
Referenced by start().
| TopicConnection cern::laser::business::pojo::HeartbeatImpl::getTopicConnection | ( | ) | throws JMSException, NamingException [inline, private] |
References connection, and topicConnectionFactory.
Referenced by getTopicSession().
| TopicPublisher cern::laser::business::pojo::HeartbeatImpl::getTopicPublisher | ( | ) | throws JMSException, NamingException [inline, private] |
References getTopicSession(), and publisher.
Referenced by sendHeartbeat().
| TopicSession cern::laser::business::pojo::HeartbeatImpl::getTopicSession | ( | ) | throws JMSException, NamingException [inline, private] |
References getTopicConnection(), and session.
Referenced by getTopicPublisher(), and sendHeartbeat().
| void cern::laser::business::pojo::HeartbeatImpl::sendHeartbeat | ( | ) | [inline, private] |
References close(), coreService, cern::laser::business::pojo::CoreServiceImpl::getHeartbeatTopic(), getTopicPublisher(), getTopicSession(), HEARTBEAT_MESSAGE_TEXT, HEARTBEAT_PROPERTY, and LOGGER.
Referenced by createTimerTask().
| void cern::laser::business::pojo::HeartbeatImpl::setCoreService | ( | CoreServiceImpl | coreService | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::HeartbeatImpl::setTopicConnectionFactory | ( | TopicConnectionFactory | topicConnectionFactory | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::HeartbeatImpl::start | ( | ) | [inline] |
References coreService, createTimerTask(), cern::laser::business::pojo::CoreServiceImpl::getHeartbeatFrequency(), LOGGER, and timer.
Referenced by com::cosylab::acs::laser::LaserComponent::execute().
| void cern::laser::business::pojo::HeartbeatImpl::stop | ( | ) | [inline] |
TopicConnection cern::laser::business::pojo::HeartbeatImpl::connection = null [private] |
Referenced by close(), and getTopicConnection().
Referenced by sendHeartbeat(), and start().
final String cern::laser::business::pojo::HeartbeatImpl::HEARTBEAT_MESSAGE_TEXT = "HEARTBEAT MESSAGE" [static, private] |
Referenced by sendHeartbeat().
final String cern::laser::business::pojo::HeartbeatImpl::HEARTBEAT_PROPERTY = "HEARTBEAT" [static, private] |
Referenced by sendHeartbeat().
final Logger cern::laser::business::pojo::HeartbeatImpl::LOGGER = Logger.getLogger(HeartbeatImpl.class.getName()) [static, private] |
Referenced by close(), createTimerTask(), sendHeartbeat(), start(), and stop().
TopicPublisher cern::laser::business::pojo::HeartbeatImpl::publisher = null [private] |
Referenced by close(), and getTopicPublisher().
TopicSession cern::laser::business::pojo::HeartbeatImpl::session = null [private] |
Referenced by close(), and getTopicSession().
Timer cern::laser::business::pojo::HeartbeatImpl::timer = null [private] |
TopicConnectionFactory cern::laser::business::pojo::HeartbeatImpl::topicConnectionFactory [private] |
Referenced by getTopicConnection().
1.6.2