

| com::cosylab::acs::laser::LaserComponent::LaserComponent | ( | AlarmSystemCorbaServer | corbaServer, | |
| AlarmSystemContainerServices | alSysContSvcs | |||
| ) | throws Exception [inline] |
Constructor
References alSysContSvcs, corbaServer, execute(), and initialize().
| void com::cosylab::acs::laser::LaserComponent::archiveSearch | ( | int[] | categoryIds, | |
| String | sql, | |||
| String | clientId | |||
| ) | [inline] |
| TextMessage com::cosylab::acs::laser::LaserComponent::buildMessage | ( | cern.laser.source.alarmsysteminterface.impl.message.FaultState | state, | |
| String | hostName, | |||
| String | sourceName | |||
| ) | throws Exception [inline, private] |
Build the ACSJMSTextMessage for a given fault state
| state | The fault state | |
| hostName | The host name |
References alSysContSvcs, cern::laser::source::alarmsysteminterface::impl::Configurator::getConfiguration(), com::cosylab::acs::jms::ACSJMSMessage::setStringProperty(), and com::cosylab::acs::jms::ACSJMSTextMessage::setText().
Referenced by submitAlarm().
| String com::cosylab::acs::laser::LaserComponent::createAdminUser | ( | String | name, | |
| String | password | |||
| ) | throws alma.alarmsystem.LaserDefinitionException [inline] |
| void com::cosylab::acs::laser::LaserComponent::createAlarm | ( | String | userId, | |
| alma.alarmsystem.AlarmDefinition | definition | |||
| ) | throws alma.alarmsystem.LaserDefinitionException [inline] |
| void com::cosylab::acs::laser::LaserComponent::createCategory | ( | String | userId, | |
| alma.alarmsystem.CategoryDefinition | definition | |||
| ) | throws alma.alarmsystem.LaserDefinitionException [inline] |
| void com::cosylab::acs::laser::LaserComponent::createSource | ( | String | userId, | |
| alma.alarmsystem.SourceDefinition | definition | |||
| ) | throws alma.alarmsystem.LaserDefinitionException [inline] |
| void com::cosylab::acs::laser::LaserComponent::execute | ( | ) | throws ComponentLifecycleException [inline] |
References coreAlarms, heartbeat, sentCoreAlarms(), and cern::laser::business::pojo::HeartbeatImpl::start().
Referenced by LaserComponent().
| Alarm com::cosylab::acs::laser::LaserComponent::fromBusinessAlarm | ( | cern.laser.business.data.Alarm | alarm | ) | [inline, private] |
Helper method which converts EJB business Alarm to CORBA Alarm structure.
| alarm |
References corbaServer, fromBusinessCategoryCollection(), fromBusinessResponsiblePerson(), fromBusinessSource(), alma::acs::alarmsystem::corbaservice::AlarmSystemCorbaServer::getORB(), and getString().
Referenced by fromBusinessAlarmCollection(), getAlarmById(), and getAlarmByTriplet().
| Alarm [] com::cosylab::acs::laser::LaserComponent::fromBusinessAlarmCollection | ( | Collection | alarms | ) | [inline, private] |
Helper method.
| alarms |
References alma::alarmsystem::Alarm::Alarm(), and fromBusinessAlarm().
Referenced by getActiveMultiplicityChildren(), getActiveNodeChildren(), getAlarmsByCategory(), getAlarmsByPriority(), getAlarmsByResponsiblePerson(), getAlarmsBySource(), getMultiplicityChildren(), getMultiplicityParents(), getNodeChildren(), and getNodeParents().
| static Category com::cosylab::acs::laser::LaserComponent::fromBusinessCategory | ( | cern.laser.business.data.Category | category | ) | [inline, static, private] |
Helper method which converts EJB business Category to CORBA Category structure.
| category |
Referenced by fromBusinessCategoryCollection(), getCategoryByPath(), getCategoryParent(), and getCategoryTreeRoot().
| static Category [] com::cosylab::acs::laser::LaserComponent::fromBusinessCategoryCollection | ( | Collection | categories | ) | [inline, static, private] |
Helper method.
| categories |
References alma::alarmsystem::Category::Category(), and fromBusinessCategory().
Referenced by fromBusinessAlarm(), getCategories(), and getCategoryChildren().
| static ResponsiblePerson com::cosylab::acs::laser::LaserComponent::fromBusinessResponsiblePerson | ( | cern.laser.business.data.ResponsiblePerson | person | ) | [inline, static, private] |
Helper method which converts EJB business ResponsiblePerson to CORBA ResponsiblePerson structure.
| person |
Referenced by fromBusinessAlarm(), fromBusinessSource(), and getResponsiblePersons().
| static Source com::cosylab::acs::laser::LaserComponent::fromBusinessSource | ( | cern.laser.business.data.Source | source | ) | [inline, static, private] |
Helper method which converts EJB business Source to CORBA Source structure.
| source |
References fromBusinessResponsiblePerson().
Referenced by fromBusinessAlarm(), and getSources().
| Alarm [] com::cosylab::acs::laser::LaserComponent::getActiveMultiplicityChildren | ( | String | parentId | ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getActiveNodeChildren | ( | String | parentId | ) | [inline] |
| Alarm com::cosylab::acs::laser::LaserComponent::getAlarmById | ( | String | id | ) | [inline] |
| Alarm com::cosylab::acs::laser::LaserComponent::getAlarmByTriplet | ( | String | ff, | |
| String | fm, | |||
| int | fc | |||
| ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getAlarmsByCategory | ( | int | categoryId | ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getAlarmsByPriority | ( | int | priority | ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getAlarmsByResponsiblePerson | ( | int | responsibleId | ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getAlarmsBySource | ( | String | sourceId | ) | [inline] |
| Category [] com::cosylab::acs::laser::LaserComponent::getCategories | ( | ) | [inline] |
| Category com::cosylab::acs::laser::LaserComponent::getCategoryByPath | ( | String | path | ) | [inline] |
| Category [] com::cosylab::acs::laser::LaserComponent::getCategoryChildren | ( | int | nodeId | ) | [inline] |
| Category com::cosylab::acs::laser::LaserComponent::getCategoryParent | ( | int | nodeId | ) | [inline] |
| String com::cosylab::acs::laser::LaserComponent::getCategoryRootTopic | ( | ) | [inline] |
Implements alma::alarmsystem::CERNAlarmServiceOperations.
References coreService, and cern::laser::business::pojo::CoreServiceImpl::getCategoryRootTopic().
| Category com::cosylab::acs::laser::LaserComponent::getCategoryTreeRoot | ( | ) | [inline] |
| String com::cosylab::acs::laser::LaserComponent::getClientRootTopic | ( | ) | [inline] |
Implements alma::alarmsystem::CERNAlarmServiceOperations.
References coreService, and cern::laser::business::pojo::CoreServiceImpl::getClientRootTopic().
| long com::cosylab::acs::laser::LaserComponent::getHeartbeatFrequency | ( | ) | [inline] |
| String com::cosylab::acs::laser::LaserComponent::getHeartbeatTopic | ( | ) | [inline] |
Implements alma::alarmsystem::CERNAlarmServiceOperations.
References coreService, and cern::laser::business::pojo::CoreServiceImpl::getHeartbeatTopic().
| Alarm [] com::cosylab::acs::laser::LaserComponent::getMultiplicityChildren | ( | String | parentId | ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getMultiplicityParents | ( | String | childId | ) | [inline] |
| int com::cosylab::acs::laser::LaserComponent::getMultiplicityThreshold | ( | String | parentId | ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getNodeChildren | ( | String | parentId | ) | [inline] |
| Alarm [] com::cosylab::acs::laser::LaserComponent::getNodeParents | ( | String | childId | ) | [inline] |
| ResponsiblePerson [] com::cosylab::acs::laser::LaserComponent::getResponsiblePersons | ( | ) | [inline] |
| String com::cosylab::acs::laser::LaserComponent::getSearchRootTopic | ( | ) | [inline] |
Implements alma::alarmsystem::CERNAlarmServiceOperations.
References coreService, and cern::laser::business::pojo::CoreServiceImpl::getSearchRootTopic().
| Source [] com::cosylab::acs::laser::LaserComponent::getSources | ( | ) | [inline] |
| static String com::cosylab::acs::laser::LaserComponent::getString | ( | String | str | ) | [inline, static, private] |
Referenced by fromBusinessAlarm().
| void com::cosylab::acs::laser::LaserComponent::initialize | ( | ) | [inline] |
References adminUserDAO, adminUserDefinitionService, alarmCache, alarmCacheListener, alarmCacheServer, alarmDAO, alarmDefinitionService, alarmMessageProcessor, alarmPublisher, alarmSourceMonitor, alSysContSvcs, categoryDAO, categoryDefinitionService, corbaServer, coreAlarms, coreService, com::cosylab::acs::jms::ACSJMSTopicConnectionFactory::createTopicConnection(), defaultTopicConnectionFactory, com::cosylab::acs::laser::dao::ACSSourceDAOImpl::getAllSourceIDs(), alma::acs::alarmsystem::corbaservice::AlarmSystemCorbaServer::getLogger(), com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::getSources(), heartbeat, com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::loadAlarms(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), logger, mailAndSmsServer, onMessage(), cern::laser::business::pojo::AlarmMessageProcessorImpl::process(), responsiblePersonDAO, cern::laser::business::pojo::SourceDefinitionServiceImpl::setAdminUserDAO(), cern::laser::business::pojo::CategoryDefinitionServiceImpl::setAdminUserDAO(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setAdminUserDAO(), cern::laser::business::pojo::AdminUserDefinitionServiceImpl::setAdminUserDAO(), cern::laser::business::pojo::SourceDefinitionServiceImpl::setAlarmCache(), cern::laser::business::pojo::CoreServiceImpl::setAlarmCache(), cern::laser::business::pojo::CategoryDefinitionServiceImpl::setAlarmCache(), cern::laser::business::pojo::AlarmMessageProcessorImpl::setAlarmCache(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setAlarmCache(), cern::laser::business::pojo::SourceDefinitionServiceImpl::setAlarmDAO(), cern::laser::business::pojo::CoreServiceImpl::setAlarmDAO(), cern::laser::business::pojo::CategoryDefinitionServiceImpl::setAlarmDAO(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setAlarmDAO(), cern::laser::business::pojo::AlarmCacheServerImpl::setAlarmDAO(), com::cosylab::acs::laser::dao::ACSResponsiblePersonDAOImpl::setAlarmDAO(), com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setAlarmDAO(), cern::laser::business::pojo::SourceDefinitionServiceImpl::setAlarmDefinitionService(), cern::laser::business::pojo::AlarmSourceMonitorImpl::setAlarmMessageProcessor(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setAlarmMessageProcessor(), cern::laser::business::pojo::CoreServiceImpl::setAlarmPublisher(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setAlarmPublisher(), cern::laser::business::pojo::AlarmCacheServerImpl::setAlarmPublisher(), cern::laser::business::pojo::SourceDefinitionServiceImpl::setCategoryDAO(), cern::laser::business::pojo::CoreServiceImpl::setCategoryDAO(), cern::laser::business::pojo::CategoryDefinitionServiceImpl::setCategoryDAO(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setCategoryDAO(), cern::laser::business::pojo::AdminUserDefinitionServiceImpl::setCategoryDAO(), cern::laser::business::pojo::AlarmPublisherImpl::setCategoryRootTopic(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setCategoryTreeRoot(), cern::laser::business::pojo::CoreServiceImpl::setClientRootTopic(), com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setConfAccessor(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setConfAccessor(), com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::setConfAccessor(), cern::laser::business::pojo::HeartbeatImpl::setCoreService(), cern::laser::business::pojo::CoreServiceImpl::setHeartbeatFrequency(), cern::laser::business::pojo::CoreServiceImpl::setHeartbeatTopic(), com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setLaserSourceId(), cern::laser::business::pojo::AlarmCacheServerImpl::setMailAndSmsServer(), cern::laser::business::pojo::SourceDefinitionServiceImpl::setResponsiblePersonDAO(), cern::laser::business::pojo::CoreServiceImpl::setResponsiblePersonDAO(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setResponsiblePersonDAO(), com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::setResponsiblePersonDAO(), com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setResponsiblePersonDAO(), cern::laser::business::pojo::CoreServiceImpl::setRootCategoryPK(), cern::laser::business::pojo::CoreServiceImpl::setSearchRootTopic(), cern::laser::business::pojo::SourceDefinitionServiceImpl::setSourceDAO(), cern::laser::business::pojo::CoreServiceImpl::setSourceDAO(), cern::laser::business::pojo::AlarmSourceMonitorImpl::setSourceDAO(), cern::laser::business::pojo::AlarmMessageProcessorImpl::setSourceDAO(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::setSourceDAO(), cern::laser::business::pojo::AlarmSourceMonitorImpl::setSourceMonitorFrequency(), com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::setSurveillanceAlarmId(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setSurveillanceCategoryPath(), cern::laser::business::pojo::HeartbeatImpl::setTopicConnectionFactory(), cern::laser::business::pojo::AlarmPublisherImpl::setTopicConnectionFactory(), sourceDAO, and sourceDefinitionService.
Referenced by LaserComponent().
| boolean com::cosylab::acs::laser::LaserComponent::isACSAlarmService | ( | ) | [inline] |
Implements alma::alarmsystem::AlarmServiceOperations.
| String com::cosylab::acs::laser::LaserComponent::loginAdminUser | ( | String | name, | |
| String | password | |||
| ) | [inline] |
| synchronized void com::cosylab::acs::laser::LaserComponent::onMessage | ( | Message | message | ) | [inline] |
References alarmMessageProcessor, logger, and cern::laser::business::pojo::AlarmMessageProcessorImpl::process().
Referenced by initialize(), sentCoreAlarms(), and submitAlarm().
| void com::cosylab::acs::laser::LaserComponent::search | ( | int[] | categoryIds, | |
| String | sql, | |||
| String | clientId | |||
| ) | [inline] |
| void com::cosylab::acs::laser::LaserComponent::select | ( | int[] | categoryIds, | |
| String | client | |||
| ) | throws LaserProcessingException [inline] |
| void com::cosylab::acs::laser::LaserComponent::sentCoreAlarms | ( | Vector< LaserCoreFaultCodes > | alarms | ) | [inline] |
Sent alarm services alarms.
The alarms generated by the alarm service are injected in the component by executing the onMessage
| alarms | The alarms to send alarms can be null or empty; |
References alSysContSvcs, logger, and onMessage().
Referenced by execute().
| synchronized void com::cosylab::acs::laser::LaserComponent::shutdown | ( | ) | [inline] |
Shutdown the alarm service
Implements alma::alarmsystem::AlarmServiceOperations.
| synchronized void com::cosylab::acs::laser::LaserComponent::submitAlarm | ( | Triplet | triplet, | |
| boolean | active, | |||
| String | sourceHostName, | |||
| String | sourceName, | |||
| long | timestamp, | |||
| Property[] | alarmProperties | |||
| ) | throws BadParameterEx, UnexpectedExceptionEx [inline] |
IDL method: submit an alarm without.
Build a message to sent to the AlarmMessageProcessorImpl#process(Message).
| triplet | The triplet of the alarm | |
| active | if true the alarm is active | |
| sourceHostName | The name of the host of the source | |
| timestamp | The timestamp of the source | |
| alarmProperties | Additional user-defined properties of the alarm |
References buildMessage(), logger, onMessage(), alma::ACSErrTypeCommon::wrappers::AcsJBadParameterEx::toBadParameterEx(), and alma::ACSErrTypeCommon::wrappers::AcsJUnexpectedExceptionEx::toUnexpectedExceptionEx().
Referenced by initialize().
AdminUserDefinitionServiceImpl com::cosylab::acs::laser::LaserComponent::adminUserDefinitionService [package] |
Referenced by createAdminUser(), initialize(), and loginAdminUser().
Referenced by initialize().
Referenced by initialize().
Referenced by initialize().
AlarmDefinitionServiceImpl com::cosylab::acs::laser::LaserComponent::alarmDefinitionService [package] |
Referenced by createAlarm(), and initialize().
Referenced by initialize(), and onMessage().
Referenced by initialize().
final AlarmSystemContainerServices com::cosylab::acs::laser::LaserComponent::alSysContSvcs [private] |
The implementation of the ContainerServicesBase
Referenced by buildMessage(), initialize(), LaserComponent(), and sentCoreAlarms().
Referenced by initialize().
CategoryDefinitionServiceImpl com::cosylab::acs::laser::LaserComponent::categoryDefinitionService [package] |
Referenced by createCategory(), and initialize().
volatile boolean com::cosylab::acs::laser::LaserComponent::closed = false [private] |
Set to true if the alarm service has been shut down
Referenced by shutdown().
The CORBA server
Referenced by fromBusinessAlarm(), initialize(), LaserComponent(), and com::cosylab::acs::laser::LaserComponent::LaserComponentTerminator::run().
Vector<LaserCoreFaultCodes> com::cosylab::acs::laser::LaserComponent::coreAlarms = new Vector<LaserCoreFaultCodes>() [private] |
If an error happens during initialization, the alarm service sends one or more alarms.
In case of errors during startup initialize() adds alarm in this vector. When the component becomes operation, execute() send all the alarms in the coreAlarms vector.
Referenced by execute(), and initialize().
Referenced by archiveSearch(), getActiveMultiplicityChildren(), getActiveNodeChildren(), getAlarmById(), getAlarmByTriplet(), getAlarmsByCategory(), getAlarmsByPriority(), getAlarmsByResponsiblePerson(), getAlarmsBySource(), getCategories(), getCategoryByPath(), getCategoryChildren(), getCategoryParent(), getCategoryRootTopic(), getCategoryTreeRoot(), getClientRootTopic(), getHeartbeatFrequency(), getHeartbeatTopic(), getMultiplicityChildren(), getMultiplicityParents(), getMultiplicityThreshold(), getNodeChildren(), getNodeParents(), getResponsiblePersons(), getSearchRootTopic(), getSources(), initialize(), search(), and select().
ACSJMSTopicConnectionFactory com::cosylab::acs::laser::LaserComponent::defaultTopicConnectionFactory [package] |
Referenced by initialize().
Logger com::cosylab::acs::laser::LaserComponent::logger = null [package] |
Referenced by initialize().
ACSResponsiblePersonDAOImpl com::cosylab::acs::laser::LaserComponent::responsiblePersonDAO [package] |
Referenced by initialize().
Referenced by initialize().
SourceDefinitionServiceImpl com::cosylab::acs::laser::LaserComponent::sourceDefinitionService [package] |
Referenced by createSource(), and initialize().
1.6.2