
Public Member Functions | |
| AlarmPublisherImpl () | |
| void | setTopicConnectionFactory (TopicConnectionFactory topicConnectionFactory) |
| void | setCategoryRootTopic (String categoryRootTopic) |
| void | publish (AlarmChange alarmChange) |
| void | sendInit (AlarmImpl alarm, String destination) |
| void | sendInit (Collection alarms, String destination) |
| void | publish (Collection alarmChanges) |
| String | getCategoryRootTopic () |
| void | sendInitFinished (String destination) |
| void | sendSearch (Collection alarms, String destination) |
Private Member Functions | |
| void | sendSearchFinished (String destination) |
| TopicSession | getTopicSession () throws JMSException, NamingException |
| TopicConnection | getTopicConnection () throws JMSException, NamingException |
| TopicPublisher | getTopicPublisher () throws JMSException, NamingException |
| void | close () |
| void | setMessageProperties (Message message, Alarm alarm) throws JMSException |
Private Attributes | |
| Context | context = null |
| TopicConnection | connection = null |
| TopicSession | session = null |
| TopicPublisher | publisher = null |
| TopicConnectionFactory | topicConnectionFactory |
| String | categoryRootTopic = DEFAULT_CATEGORY_ROOT_TOPIC |
Static Private Attributes | |
| static final String | LASER_INIT_PROPERTY = "LASER_INIT" |
| static final String | LASER_SEARCH_PROPERTY = "LASER_SEARCH" |
| static final Logger | LOGGER = Logger.getLogger(AlarmPublisherImpl.class.getName()) |
| static final String | DEFAULT_CATEGORY_ROOT_TOPIC = "CMW.ALARM_SYSTEM.CATEGORIES" |
| static final String | BOOLEAN_SUFFIX = "_BOOL" |
| static final String | INTEGER_SUFFIX = "_INT" |
| static final String | FLOAT_SUFFIX = "_FLOAT" |
| static final String | DOUBLE_SUFFIX = "_DOUBLE" |
| static final String | SHORT_SUFFIX = "_SHORT" |
| static final String | LONG_SUFFIX = "_LONG" |
| static final String | STRING_SUFFIX = "_STRING" |
| static final String | BYTE_SUFFIX = "_BYTE" |
| cern::laser::business::pojo::AlarmPublisherImpl::AlarmPublisherImpl | ( | ) | [inline] |
| void cern::laser::business::pojo::AlarmPublisherImpl::close | ( | ) | [inline, private] |
References connection, LOGGER, publisher, and session.
Referenced by publish(), sendInit(), sendInitFinished(), sendSearch(), and sendSearchFinished().
| String cern::laser::business::pojo::AlarmPublisherImpl::getCategoryRootTopic | ( | ) | [inline] |
References categoryRootTopic.
Referenced by cern::laser::business::pojo::CoreServiceImpl::getCategoryRootTopic().
| TopicConnection cern::laser::business::pojo::AlarmPublisherImpl::getTopicConnection | ( | ) | throws JMSException, NamingException [inline, private] |
References connection, and topicConnectionFactory.
Referenced by getTopicSession().
| TopicPublisher cern::laser::business::pojo::AlarmPublisherImpl::getTopicPublisher | ( | ) | throws JMSException, NamingException [inline, private] |
References getTopicSession(), and publisher.
Referenced by publish(), sendInit(), sendInitFinished(), sendSearch(), and sendSearchFinished().
| TopicSession cern::laser::business::pojo::AlarmPublisherImpl::getTopicSession | ( | ) | throws JMSException, NamingException [inline, private] |
References getTopicConnection(), and session.
Referenced by getTopicPublisher(), publish(), sendInit(), sendInitFinished(), sendSearch(), and sendSearchFinished().
| void cern::laser::business::pojo::AlarmPublisherImpl::publish | ( | Collection | alarmChanges | ) | [inline] |
References publish().
| void cern::laser::business::pojo::AlarmPublisherImpl::publish | ( | AlarmChange | alarmChange | ) | [inline] |
change belongs to the reduced set if and only if the transition is from whatever to (ACTIVE, NOT REDUCED, NOT MASKED) or from (ACTIVE, NOT REDUCED, NOT MASKED) to whatever else or if there was not a transition but a change of something NOT REDUCED and NOT MASKED
change belongs to the not reduced set if an only if the transition was from ACTIVE to NOT ACTIVE or from NOT ACTIVE to ACTIVE or if it was not triggered by reduction or mask flags
References categoryRootTopic, close(), cern::laser::business::data::Status::getActive(), cern::laser::business::data::Alarm::getCategories(), cern::laser::business::data::AlarmChange::getCurrent(), cern::laser::business::data::Status::getMasked(), cern::laser::business::data::Category::getPath(), cern::laser::business::data::AlarmChange::getPrevious(), cern::laser::business::data::Status::getReduced(), cern::laser::business::data::Status::getSourceTimestamp(), cern::laser::business::data::AlarmImpl::getStatus(), cern::laser::business::data::Alarm::getStatus(), getTopicPublisher(), getTopicSession(), cern::laser::business::data::Alarm::getTriplet(), LOGGER, and setMessageProperties().
Referenced by cern::laser::business::pojo::AlarmDefinitionServiceImpl::propagateRemovedAlarm(), publish(), and cern::laser::business::pojo::AlarmCacheServerImpl::publish().
| void cern::laser::business::pojo::AlarmPublisherImpl::sendInit | ( | Collection | alarms, | |
| String | destination | |||
| ) | [inline] |
| void cern::laser::business::pojo::AlarmPublisherImpl::sendInit | ( | AlarmImpl | alarm, | |
| String | destination | |||
| ) | [inline] |
References close(), cern::laser::business::data::AlarmImpl::getAlarmId(), cern::laser::business::data::Status::getMasked(), cern::laser::business::data::Status::getReduced(), cern::laser::business::data::AlarmImpl::getStatus(), getTopicPublisher(), getTopicSession(), LOGGER, and setMessageProperties().
Referenced by cern::laser::business::pojo::CoreServiceImpl::select().
| void cern::laser::business::pojo::AlarmPublisherImpl::sendInitFinished | ( | String | destination | ) | [inline] |
References close(), getTopicPublisher(), getTopicSession(), LASER_INIT_PROPERTY, and LOGGER.
Referenced by cern::laser::business::pojo::CoreServiceImpl::select().
| void cern::laser::business::pojo::AlarmPublisherImpl::sendSearch | ( | Collection | alarms, | |
| String | destination | |||
| ) | [inline] |
| init_alarms | ||
| destination |
References close(), getTopicPublisher(), getTopicSession(), LOGGER, sendSearchFinished(), and setMessageProperties().
Referenced by cern::laser::business::pojo::CoreServiceImpl::archiveSearch(), and cern::laser::business::pojo::CoreServiceImpl::search().
| void cern::laser::business::pojo::AlarmPublisherImpl::sendSearchFinished | ( | String | destination | ) | [inline, private] |
References close(), getTopicPublisher(), getTopicSession(), LASER_SEARCH_PROPERTY, and LOGGER.
Referenced by sendSearch().
| void cern::laser::business::pojo::AlarmPublisherImpl::setCategoryRootTopic | ( | String | categoryRootTopic | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::AlarmPublisherImpl::setMessageProperties | ( | Message | message, | |
| Alarm | alarm | |||
| ) | throws JMSException [inline, private] |
References BOOLEAN_SUFFIX, BYTE_SUFFIX, DOUBLE_SUFFIX, FLOAT_SUFFIX, INTEGER_SUFFIX, LOGGER, and SHORT_SUFFIX.
Referenced by publish(), sendInit(), and sendSearch().
| void cern::laser::business::pojo::AlarmPublisherImpl::setTopicConnectionFactory | ( | TopicConnectionFactory | topicConnectionFactory | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
final String cern::laser::business::pojo::AlarmPublisherImpl::BOOLEAN_SUFFIX = "_BOOL" [static, private] |
Referenced by setMessageProperties().
final String cern::laser::business::pojo::AlarmPublisherImpl::BYTE_SUFFIX = "_BYTE" [static, private] |
Referenced by setMessageProperties().
String cern::laser::business::pojo::AlarmPublisherImpl::categoryRootTopic = DEFAULT_CATEGORY_ROOT_TOPIC [private] |
Referenced by getCategoryRootTopic(), and publish().
TopicConnection cern::laser::business::pojo::AlarmPublisherImpl::connection = null [private] |
Referenced by close(), and getTopicConnection().
Context cern::laser::business::pojo::AlarmPublisherImpl::context = null [private] |
final String cern::laser::business::pojo::AlarmPublisherImpl::DEFAULT_CATEGORY_ROOT_TOPIC = "CMW.ALARM_SYSTEM.CATEGORIES" [static, private] |
final String cern::laser::business::pojo::AlarmPublisherImpl::DOUBLE_SUFFIX = "_DOUBLE" [static, private] |
Referenced by setMessageProperties().
final String cern::laser::business::pojo::AlarmPublisherImpl::FLOAT_SUFFIX = "_FLOAT" [static, private] |
Referenced by setMessageProperties().
final String cern::laser::business::pojo::AlarmPublisherImpl::INTEGER_SUFFIX = "_INT" [static, private] |
Referenced by setMessageProperties().
final String cern::laser::business::pojo::AlarmPublisherImpl::LASER_INIT_PROPERTY = "LASER_INIT" [static, private] |
Referenced by sendInitFinished().
final String cern::laser::business::pojo::AlarmPublisherImpl::LASER_SEARCH_PROPERTY = "LASER_SEARCH" [static, private] |
Referenced by sendSearchFinished().
final Logger cern::laser::business::pojo::AlarmPublisherImpl::LOGGER = Logger.getLogger(AlarmPublisherImpl.class.getName()) [static, private] |
Referenced by close(), publish(), sendInit(), sendInitFinished(), sendSearch(), sendSearchFinished(), and setMessageProperties().
final String cern::laser::business::pojo::AlarmPublisherImpl::LONG_SUFFIX = "_LONG" [static, private] |
TopicPublisher cern::laser::business::pojo::AlarmPublisherImpl::publisher = null [private] |
Referenced by close(), and getTopicPublisher().
TopicSession cern::laser::business::pojo::AlarmPublisherImpl::session = null [private] |
Referenced by close(), and getTopicSession().
final String cern::laser::business::pojo::AlarmPublisherImpl::SHORT_SUFFIX = "_SHORT" [static, private] |
Referenced by setMessageProperties().
final String cern::laser::business::pojo::AlarmPublisherImpl::STRING_SUFFIX = "_STRING" [static, private] |
TopicConnectionFactory cern::laser::business::pojo::AlarmPublisherImpl::topicConnectionFactory [private] |
Referenced by getTopicConnection().
1.6.2