
Public Member Functions | |
| void | setSourceDAO (SourceDAO sourceDAO) |
| void | setAlarmCache (AlarmCache alarmCache) |
| void | notifyReductionRelatives (Alarm alarm) |
| void | process (Message alarmMessage) throws Exception |
| void | processChange (FaultState faultState, String sourceName, String sourceHostname, Timestamp sourceTimestamp) throws Exception |
| void | updateMultiplicityNode (Alarm alarm) |
| void | updateReductionStatus (Alarm alarm) |
Private Member Functions | |
| void | updateStatus (FaultState faultState, Status currentStatus, Boolean active, String sourceHostname, Timestamp sourceTimestamp, Timestamp system_timestamp) |
| boolean | isMultiplicityParent (Alarm alarm) |
| boolean | isNodeParent (Alarm alarm) |
| boolean | hasActiveMultiplicityParents (Alarm alarm) throws Exception |
| boolean | hasActiveNodeParents (Alarm alarm) throws Exception |
| boolean | hasTooManyActiveMultiplicityChildren (Alarm alarm) throws Exception |
| void | processBackup (ASIMessage asiMessage) throws Exception |
| void | processChanges (ASIMessage asiMessage) |
| void | notifyNodeChildren (Alarm alarm) throws Exception |
| void | notifyMultiplicityChildren (Alarm alarm) throws Exception |
| void | notifyMultiplicityParents (Alarm alarm) throws Exception |
Private Attributes | |
| SourceDAO | sourceDAO |
| AlarmCache | alarmCache |
Static Private Attributes | |
| static final Logger | LOGGER = Logger.getLogger(AlarmMessageProcessorImpl.class.getName()) |
| boolean cern::laser::business::pojo::AlarmMessageProcessorImpl::hasActiveMultiplicityParents | ( | Alarm | alarm | ) | throws Exception [inline, private] |
| boolean cern::laser::business::pojo::AlarmMessageProcessorImpl::hasActiveNodeParents | ( | Alarm | alarm | ) | throws Exception [inline, private] |
| boolean cern::laser::business::pojo::AlarmMessageProcessorImpl::hasTooManyActiveMultiplicityChildren | ( | Alarm | alarm | ) | throws Exception [inline, private] |
| boolean cern::laser::business::pojo::AlarmMessageProcessorImpl::isMultiplicityParent | ( | Alarm | alarm | ) | [inline, private] |
| boolean cern::laser::business::pojo::AlarmMessageProcessorImpl::isNodeParent | ( | Alarm | alarm | ) | [inline, private] |
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::notifyMultiplicityChildren | ( | Alarm | alarm | ) | throws Exception [inline, private] |
References alarmCache, cern::laser::business::cache::AlarmCache::getCopy(), cern::laser::business::data::Status::getReduced(), cern::laser::business::data::Alarm::getStatus(), cern::laser::business::data::Alarm::getTriplet(), hasActiveMultiplicityParents(), LOGGER, cern::laser::business::cache::AlarmCache::put(), and cern::laser::business::data::Status::setReduced().
Referenced by notifyReductionRelatives().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::notifyMultiplicityParents | ( | Alarm | alarm | ) | throws Exception [inline, private] |
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::notifyNodeChildren | ( | Alarm | alarm | ) | throws Exception [inline, private] |
References alarmCache, cern::laser::business::cache::AlarmCache::getCopy(), cern::laser::business::data::Status::getReduced(), cern::laser::business::data::Alarm::getStatus(), cern::laser::business::data::Alarm::getTriplet(), hasActiveNodeParents(), LOGGER, cern::laser::business::cache::AlarmCache::put(), and cern::laser::business::data::Status::setReduced().
Referenced by notifyReductionRelatives().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::notifyReductionRelatives | ( | Alarm | alarm | ) | [inline] |
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::process | ( | Message | alarmMessage | ) | throws Exception [inline] |
References LOGGER, processBackup(), and processChanges().
Referenced by com::cosylab::acs::laser::LaserComponent::initialize(), and com::cosylab::acs::laser::LaserComponent::onMessage().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::processBackup | ( | ASIMessage | asiMessage | ) | throws Exception [inline, private] |
References alarmCache, cern::laser::business::dao::SourceDAO::findSource(), cern::laser::business::data::Status::getActive(), cern::laser::business::data::Alarm::getAlarmId(), cern::laser::business::dao::SourceDAO::getAlarms(), cern::laser::source::alarmsysteminterface::FaultState::getCode(), cern::laser::source::alarmsysteminterface::FaultState::getFamily(), cern::laser::business::data::Triplet::getFaultCode(), cern::laser::business::data::Triplet::getFaultFamily(), cern::laser::business::data::Triplet::getFaultMember(), cern::laser::business::data::Alarm::getInstant(), cern::laser::source::alarmsysteminterface::FaultState::getMember(), cern::laser::business::data::Status::getProperties(), cern::laser::business::cache::AlarmCache::getReference(), cern::laser::business::data::Source::getSourceId(), cern::laser::business::data::Source::getStatus(), cern::laser::business::data::Alarm::getStatus(), cern::laser::business::data::Alarm::getTriplet(), LOGGER, processChange(), cern::laser::source::alarmsysteminterface::FaultState::setActivatedByBackup(), cern::laser::source::alarmsysteminterface::FaultState::setDescriptor(), cern::laser::source::alarmsysteminterface::FaultState::setTerminatedByBackup(), cern::laser::source::alarmsysteminterface::FaultState::setUserProperties(), cern::laser::source::alarmsysteminterface::FaultState::setUserTimestamp(), sourceDAO, and cern::laser::business::dao::SourceDAO::updateSource().
Referenced by process().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::processChange | ( | FaultState | faultState, | |
| String | sourceName, | |||
| String | sourceHostname, | |||
| Timestamp | sourceTimestamp | |||
| ) | throws Exception [inline] |
References alarmCache, cern::laser::business::cache::AlarmCache::getCopy(), cern::laser::business::data::Source::getName(), cern::laser::business::data::Alarm::getSource(), cern::laser::business::data::Status::getSourceTimestamp(), cern::laser::business::data::Status::getUserTimestamp(), LOGGER, notifyReductionRelatives(), cern::laser::business::cache::AlarmCache::put(), and updateStatus().
Referenced by cern::laser::business::pojo::AlarmSourceMonitorImpl::check(), processBackup(), and processChanges().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::processChanges | ( | ASIMessage | asiMessage | ) | [inline, private] |
References LOGGER, and processChange().
Referenced by process().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::setAlarmCache | ( | AlarmCache | alarmCache | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::setSourceDAO | ( | SourceDAO | sourceDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::updateMultiplicityNode | ( | Alarm | alarm | ) | [inline] |
References alarmCache, cern::laser::business::data::Status::getActive(), cern::laser::business::data::Alarm::getStatus(), cern::laser::business::data::Alarm::getTriplet(), hasTooManyActiveMultiplicityChildren(), LOGGER, notifyReductionRelatives(), cern::laser::business::cache::AlarmCache::put(), cern::laser::business::data::Status::setActive(), cern::laser::business::data::Status::setSourceTimestamp(), cern::laser::business::data::Status::setSystemTimestamp(), and cern::laser::business::data::Status::setUserTimestamp().
Referenced by notifyMultiplicityParents(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::propagateMultiplicityLink(), and cern::laser::business::pojo::AlarmDefinitionServiceImpl::propagateMultiplicityThreshold().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::updateReductionStatus | ( | Alarm | alarm | ) | [inline] |
References alarmCache, cern::laser::business::data::Status::getReduced(), cern::laser::business::data::Alarm::getStatus(), cern::laser::business::data::Alarm::getTriplet(), hasActiveMultiplicityParents(), hasActiveNodeParents(), LOGGER, cern::laser::business::cache::AlarmCache::put(), and cern::laser::business::data::Status::setReduced().
Referenced by cern::laser::business::pojo::AlarmDefinitionServiceImpl::propagateMultiplicityLink(), and cern::laser::business::pojo::AlarmDefinitionServiceImpl::propagateNodeLink().
| void cern::laser::business::pojo::AlarmMessageProcessorImpl::updateStatus | ( | FaultState | faultState, | |
| Status | currentStatus, | |||
| Boolean | active, | |||
| String | sourceHostname, | |||
| Timestamp | sourceTimestamp, | |||
| Timestamp | system_timestamp | |||
| ) | [inline, private] |
References cern::laser::source::alarmsysteminterface::FaultState::getActivatedByBackup(), cern::laser::source::alarmsysteminterface::FaultState::getTerminatedByBackup(), cern::laser::source::alarmsysteminterface::FaultState::getUserProperties(), cern::laser::source::alarmsysteminterface::FaultState::getUserTimestamp(), cern::laser::business::data::Status::setActivatedByBackup(), cern::laser::business::data::Status::setActive(), cern::laser::business::data::Status::setProperties(), cern::laser::business::data::Status::setSourceHostname(), cern::laser::business::data::Status::setSourceTimestamp(), cern::laser::business::data::Status::setSystemTimestamp(), cern::laser::business::data::Status::setTerminatedByBackup(), and cern::laser::business::data::Status::setUserTimestamp().
Referenced by processChange().
final Logger cern::laser::business::pojo::AlarmMessageProcessorImpl::LOGGER = Logger.getLogger(AlarmMessageProcessorImpl.class.getName()) [static, private] |
Referenced by processBackup().
1.6.2