Inherits alma::alarmsystem::CERNAlarmServicePOA, and javax::jms::MessageListener.
Classes | |
| class | LaserComponentTerminator |
Public Member Functions | |
| LaserComponent (AlarmSystemCorbaServer corbaServer, AlarmSystemContainerServices alSysContSvcs) throws Exception | |
| void | initialize () |
| synchronized void | shutdown () |
| void | sentCoreAlarms (Vector< LaserCoreFaultCodes > alarms) |
| synchronized void | onMessage (Message message) |
| void | execute () throws ComponentLifecycleException |
| Alarm[] | getActiveMultiplicityChildren (String parentId) |
| Alarm[] | getActiveNodeChildren (String parentId) |
| Alarm | getAlarmById (String id) |
| Alarm | getAlarmByTriplet (String ff, String fm, int fc) |
| Alarm[] | getAlarmsByCategory (int categoryId) |
| Alarm[] | getAlarmsByPriority (int priority) |
| Alarm[] | getAlarmsByResponsiblePerson (int responsibleId) |
| Alarm[] | getAlarmsBySource (String sourceId) |
| Category[] | getCategories () |
| Category | getCategoryByPath (String path) |
| Category[] | getCategoryChildren (int nodeId) |
| Category | getCategoryParent (int nodeId) |
| String | getCategoryRootTopic () |
| Category | getCategoryTreeRoot () |
| String | getClientRootTopic () |
| long | getHeartbeatFrequency () |
| String | getHeartbeatTopic () |
| Alarm[] | getMultiplicityChildren (String parentId) |
| Alarm[] | getMultiplicityParents (String childId) |
| int | getMultiplicityThreshold (String parentId) |
| Alarm[] | getNodeChildren (String parentId) |
| Alarm[] | getNodeParents (String childId) |
| ResponsiblePerson[] | getResponsiblePersons () |
| String | getSearchRootTopic () |
| Source[] | getSources () |
| void | archiveSearch (int[] categoryIds, String sql, String clientId) |
| void | search (int[] categoryIds, String sql, String clientId) |
| void | select (int[] categoryIds, String client) throws LaserProcessingException |
| String | createAdminUser (String name, String password) throws alma.alarmsystem.LaserDefinitionException |
| String | loginAdminUser (String name, String password) |
| void | createCategory (String userId, alma.alarmsystem.CategoryDefinition definition) throws alma.alarmsystem.LaserDefinitionException |
| void | createSource (String userId, alma.alarmsystem.SourceDefinition definition) throws alma.alarmsystem.LaserDefinitionException |
| void | createAlarm (String userId, alma.alarmsystem.AlarmDefinition definition) throws alma.alarmsystem.LaserDefinitionException |
| boolean | isACSAlarmService () |
| synchronized void | submitAlarm (Triplet triplet, boolean active, String sourceHostName, String sourceName, long timestamp, Property[] alarmProperties) throws BadParameterEx, UnexpectedExceptionEx |
Package Attributes | |
| Logger | logger = null |
| ACSAdminUserDAOImpl | adminUserDAO |
| ACSAlarmDAOImpl | alarmDAO |
| ACSCategoryDAOImpl | categoryDAO |
| ACSResponsiblePersonDAOImpl | responsiblePersonDAO |
| ACSSourceDAOImpl | sourceDAO |
| AdminUserDefinitionServiceImpl | adminUserDefinitionService |
| AlarmCacheServerImpl | alarmCacheServer |
| AlarmDefinitionServiceImpl | alarmDefinitionService |
| AlarmMessageProcessorImpl | alarmMessageProcessor |
| AlarmPublisherImpl | alarmPublisher |
| AlarmSourceMonitorImpl | alarmSourceMonitor |
| CategoryDefinitionServiceImpl | categoryDefinitionService |
| CoreServiceImpl | coreService |
| HeartbeatImpl | heartbeat |
| MailAndSmsServerImpl | mailAndSmsServer |
| SourceDefinitionServiceImpl | sourceDefinitionService |
| AlarmCacheListener | alarmCacheListener |
| ACSAlarmCacheImpl | alarmCache |
| ACSJMSTopicConnectionFactory | defaultTopicConnectionFactory |
| com.cosylab.acs.laser.LaserComponent.LaserComponent | ( | AlarmSystemCorbaServer | corbaServer, | |
| AlarmSystemContainerServices | alSysContSvcs | |||
| ) | throws Exception |
Constructor
References com.cosylab.acs.laser.LaserComponent.execute(), and com.cosylab.acs.laser.LaserComponent.initialize().
| void com.cosylab.acs.laser.LaserComponent.archiveSearch | ( | int[] | categoryIds, | |
| String | sql, | |||
| String | clientId | |||
| ) |
| String com.cosylab.acs.laser.LaserComponent.createAdminUser | ( | String | name, | |
| String | password | |||
| ) | throws alma.alarmsystem.LaserDefinitionException |
| void com.cosylab.acs.laser.LaserComponent.createAlarm | ( | String | userId, | |
| alma.alarmsystem.AlarmDefinition | definition | |||
| ) | throws alma.alarmsystem.LaserDefinitionException |
| void com.cosylab.acs.laser.LaserComponent.createCategory | ( | String | userId, | |
| alma.alarmsystem.CategoryDefinition | definition | |||
| ) | throws alma.alarmsystem.LaserDefinitionException |
| void com.cosylab.acs.laser.LaserComponent.createSource | ( | String | userId, | |
| alma.alarmsystem.SourceDefinition | definition | |||
| ) | throws alma.alarmsystem.LaserDefinitionException |
| void com.cosylab.acs.laser.LaserComponent.execute | ( | ) | throws ComponentLifecycleException |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getActiveMultiplicityChildren | ( | String | parentId | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getActiveNodeChildren | ( | String | parentId | ) |
| Alarm com.cosylab.acs.laser.LaserComponent.getAlarmById | ( | String | id | ) |
| Alarm com.cosylab.acs.laser.LaserComponent.getAlarmByTriplet | ( | String | ff, | |
| String | fm, | |||
| int | fc | |||
| ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getAlarmsByCategory | ( | int | categoryId | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getAlarmsByPriority | ( | int | priority | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getAlarmsByResponsiblePerson | ( | int | responsibleId | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getAlarmsBySource | ( | String | sourceId | ) |
| Category [] com.cosylab.acs.laser.LaserComponent.getCategories | ( | ) |
| Category com.cosylab.acs.laser.LaserComponent.getCategoryByPath | ( | String | path | ) |
| Category [] com.cosylab.acs.laser.LaserComponent.getCategoryChildren | ( | int | nodeId | ) |
| Category com.cosylab.acs.laser.LaserComponent.getCategoryParent | ( | int | nodeId | ) |
| String com.cosylab.acs.laser.LaserComponent.getCategoryRootTopic | ( | ) |
| Category com.cosylab.acs.laser.LaserComponent.getCategoryTreeRoot | ( | ) |
| String com.cosylab.acs.laser.LaserComponent.getClientRootTopic | ( | ) |
| long com.cosylab.acs.laser.LaserComponent.getHeartbeatFrequency | ( | ) |
| String com.cosylab.acs.laser.LaserComponent.getHeartbeatTopic | ( | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getMultiplicityChildren | ( | String | parentId | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getMultiplicityParents | ( | String | childId | ) |
| int com.cosylab.acs.laser.LaserComponent.getMultiplicityThreshold | ( | String | parentId | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getNodeChildren | ( | String | parentId | ) |
| Alarm [] com.cosylab.acs.laser.LaserComponent.getNodeParents | ( | String | childId | ) |
| ResponsiblePerson [] com.cosylab.acs.laser.LaserComponent.getResponsiblePersons | ( | ) |
| String com.cosylab.acs.laser.LaserComponent.getSearchRootTopic | ( | ) |
| Source [] com.cosylab.acs.laser.LaserComponent.getSources | ( | ) |
| void com.cosylab.acs.laser.LaserComponent.initialize | ( | ) |
References com.cosylab.acs.laser.LaserComponent.adminUserDAO, com.cosylab.acs.laser.LaserComponent.adminUserDefinitionService, com.cosylab.acs.laser.LaserComponent.alarmCache, com.cosylab.acs.laser.LaserComponent.alarmCacheListener, com.cosylab.acs.laser.LaserComponent.alarmCacheServer, com.cosylab.acs.laser.LaserComponent.alarmDAO, com.cosylab.acs.laser.LaserComponent.alarmDefinitionService, com.cosylab.acs.laser.LaserComponent.alarmMessageProcessor, com.cosylab.acs.laser.LaserComponent.alarmPublisher, com.cosylab.acs.laser.LaserComponent.alarmSourceMonitor, com.cosylab.acs.laser.LaserComponent.categoryDAO, com.cosylab.acs.laser.LaserComponent.categoryDefinitionService, com.cosylab.acs.laser.LaserComponent.coreService, com.cosylab.acs.jms.ACSJMSTopicConnectionFactory.createTopicConnection(), com.cosylab.acs.laser.LaserComponent.defaultTopicConnectionFactory, com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getAllSourceIDs(), alma.acs.alarmsystem.corbaservice.AlarmSystemCorbaServer.getLogger(), com.cosylab.acs.laser.dao.ACSAlarmDAOImpl.getSources(), com.cosylab.acs.laser.LaserComponent.heartbeat, com.cosylab.acs.laser.dao.ACSAlarmDAOImpl.loadAlarms(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), com.cosylab.acs.laser.LaserComponent.logger, com.cosylab.acs.laser.LaserComponent.mailAndSmsServer, com.cosylab.acs.laser.LaserComponent.onMessage(), cern.laser.business.pojo.AlarmMessageProcessorImpl.process(), com.cosylab.acs.laser.LaserComponent.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(), com.cosylab.acs.laser.dao.ACSAlarmDAOImpl.setAlarmProcessor(), 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(), com.cosylab.acs.laser.LaserComponent.sourceDAO, and com.cosylab.acs.laser.LaserComponent.sourceDefinitionService.
Referenced by com.cosylab.acs.laser.LaserComponent.LaserComponent().
| boolean com.cosylab.acs.laser.LaserComponent.isACSAlarmService | ( | ) |
| String com.cosylab.acs.laser.LaserComponent.loginAdminUser | ( | String | name, | |
| String | password | |||
| ) |
| synchronized void com.cosylab.acs.laser.LaserComponent.onMessage | ( | Message | message | ) |
References com.cosylab.acs.laser.LaserComponent.alarmMessageProcessor, com.cosylab.acs.laser.LaserComponent.logger, and cern.laser.business.pojo.AlarmMessageProcessorImpl.process().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize(), com.cosylab.acs.laser.LaserComponent.sentCoreAlarms(), and com.cosylab.acs.laser.LaserComponent.submitAlarm().
| void com.cosylab.acs.laser.LaserComponent.search | ( | int[] | categoryIds, | |
| String | sql, | |||
| String | clientId | |||
| ) |
| void com.cosylab.acs.laser.LaserComponent.select | ( | int[] | categoryIds, | |
| String | client | |||
| ) | throws LaserProcessingException |
| void com.cosylab.acs.laser.LaserComponent.sentCoreAlarms | ( | Vector< LaserCoreFaultCodes > | alarms | ) |
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 com.cosylab.acs.laser.LaserComponent.logger, and com.cosylab.acs.laser.LaserComponent.onMessage().
Referenced by com.cosylab.acs.laser.LaserComponent.execute().
| synchronized void com.cosylab.acs.laser.LaserComponent.shutdown | ( | ) |
Shutdown the alarm service
References com.cosylab.acs.laser.LaserComponent.logger.
| synchronized void com.cosylab.acs.laser.LaserComponent.submitAlarm | ( | Triplet | triplet, | |
| boolean | active, | |||
| String | sourceHostName, | |||
| String | sourceName, | |||
| long | timestamp, | |||
| Property[] | alarmProperties | |||
| ) | throws BadParameterEx, UnexpectedExceptionEx |
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 com.cosylab.acs.laser.LaserComponent.logger, and com.cosylab.acs.laser.LaserComponent.onMessage().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.archiveSearch(), com.cosylab.acs.laser.LaserComponent.getActiveMultiplicityChildren(), com.cosylab.acs.laser.LaserComponent.getActiveNodeChildren(), com.cosylab.acs.laser.LaserComponent.getAlarmById(), com.cosylab.acs.laser.LaserComponent.getAlarmByTriplet(), com.cosylab.acs.laser.LaserComponent.getAlarmsByCategory(), com.cosylab.acs.laser.LaserComponent.getAlarmsByPriority(), com.cosylab.acs.laser.LaserComponent.getAlarmsByResponsiblePerson(), com.cosylab.acs.laser.LaserComponent.getAlarmsBySource(), com.cosylab.acs.laser.LaserComponent.getCategories(), com.cosylab.acs.laser.LaserComponent.getCategoryByPath(), com.cosylab.acs.laser.LaserComponent.getCategoryChildren(), com.cosylab.acs.laser.LaserComponent.getCategoryParent(), com.cosylab.acs.laser.LaserComponent.getCategoryRootTopic(), com.cosylab.acs.laser.LaserComponent.getCategoryTreeRoot(), com.cosylab.acs.laser.LaserComponent.getClientRootTopic(), com.cosylab.acs.laser.LaserComponent.getHeartbeatFrequency(), com.cosylab.acs.laser.LaserComponent.getHeartbeatTopic(), com.cosylab.acs.laser.LaserComponent.getMultiplicityChildren(), com.cosylab.acs.laser.LaserComponent.getMultiplicityParents(), com.cosylab.acs.laser.LaserComponent.getMultiplicityThreshold(), com.cosylab.acs.laser.LaserComponent.getNodeChildren(), com.cosylab.acs.laser.LaserComponent.getNodeParents(), com.cosylab.acs.laser.LaserComponent.getResponsiblePersons(), com.cosylab.acs.laser.LaserComponent.getSearchRootTopic(), com.cosylab.acs.laser.LaserComponent.getSources(), com.cosylab.acs.laser.LaserComponent.initialize(), com.cosylab.acs.laser.LaserComponent.search(), and com.cosylab.acs.laser.LaserComponent.select().
ACSJMSTopicConnectionFactory com.cosylab.acs.laser.LaserComponent.defaultTopicConnectionFactory [package] |
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Logger com.cosylab.acs.laser.LaserComponent.logger = null [package] |
Referenced by com.cosylab.acs.laser.LaserComponent.initialize(), com.cosylab.acs.laser.LaserComponent.onMessage(), com.cosylab.acs.laser.LaserComponent.LaserComponentTerminator.run(), com.cosylab.acs.laser.LaserComponent.sentCoreAlarms(), com.cosylab.acs.laser.LaserComponent.shutdown(), and com.cosylab.acs.laser.LaserComponent.submitAlarm().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
1.7.0