
Public Member Functions | |
| void | setAlarmDAO (AlarmDAO alarmDAO) |
| void | setAlarmPublisher (AlarmPublisherImpl alarmPublisher) |
| void | setMailAndSmsServer (MailAndSmsServerImpl mailAndSmsServer) |
| Alarm | load (String alarmId) |
| void | store (Collection updated) |
| void | publish (Collection alarmChanges) |
| void | notify (Collection alarmChanges) |
Private Member Functions | |
| void | sendEmail (Alarm currentAlarm) |
| void | sendSMS (Alarm currentAlarm) |
Private Attributes | |
| AlarmDAO | alarmDAO |
| AlarmPublisherImpl | alarmPublisher |
| MailAndSmsServerImpl | mailAndSmsServer |
Static Private Attributes | |
| static final Logger | LOGGER = Logger.getLogger(AlarmCacheServerImpl.class.getName()) |
| Alarm cern::laser::business::pojo::AlarmCacheServerImpl::load | ( | String | alarmId | ) | [inline] |
References alarmDAO, and cern::laser::business::dao::AlarmDAO::findAlarm().
| void cern::laser::business::pojo::AlarmCacheServerImpl::notify | ( | Collection | alarmChanges | ) | [inline] |
References cern::laser::business::data::Status::getActive(), cern::laser::business::data::AlarmChange::getCurrent(), cern::laser::business::data::Alarm::getPiquetEmail(), cern::laser::business::data::Alarm::getPiquetGSM(), cern::laser::business::data::AlarmChange::getPrevious(), cern::laser::business::data::Alarm::getStatus(), LOGGER, sendEmail(), and sendSMS().
Referenced by cern::laser::business::cache::AlarmCacheListenerImpl::createToBeNotifiedListener().
| void cern::laser::business::pojo::AlarmCacheServerImpl::publish | ( | Collection | alarmChanges | ) | [inline] |
| void cern::laser::business::pojo::AlarmCacheServerImpl::sendEmail | ( | Alarm | currentAlarm | ) | [inline, private] |
References cern::laser::business::data::Alarm::getPiquetEmail(), LOGGER, mailAndSmsServer, and cern::laser::business::pojo::MailAndSmsServerImpl::sendEmail().
Referenced by notify().
| void cern::laser::business::pojo::AlarmCacheServerImpl::sendSMS | ( | Alarm | currentAlarm | ) | [inline, private] |
References cern::laser::business::data::Status::getActive(), cern::laser::business::data::Alarm::getIdentifier(), cern::laser::business::data::Alarm::getPiquetGSM(), cern::laser::business::data::Alarm::getProblemDescription(), cern::laser::business::data::Status::getSourceTimestamp(), cern::laser::business::data::Alarm::getStatus(), cern::laser::business::data::Alarm::getSystemName(), LOGGER, mailAndSmsServer, and cern::laser::business::pojo::MailAndSmsServerImpl::sendSMS().
Referenced by notify().
| void cern::laser::business::pojo::AlarmCacheServerImpl::setAlarmDAO | ( | AlarmDAO | alarmDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::AlarmCacheServerImpl::setAlarmPublisher | ( | AlarmPublisherImpl | alarmPublisher | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::AlarmCacheServerImpl::setMailAndSmsServer | ( | MailAndSmsServerImpl | mailAndSmsServer | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::AlarmCacheServerImpl::store | ( | Collection | updated | ) | [inline] |
Referenced by publish().
final Logger cern::laser::business::pojo::AlarmCacheServerImpl::LOGGER = Logger.getLogger(AlarmCacheServerImpl.class.getName()) [static, private] |
Referenced by notify(), publish(), sendEmail(), sendSMS(), and store().
Referenced by sendEmail(), and sendSMS().
1.6.2