

Public Member Functions | |
| ACSSourceDAOImpl (Logger log, ConcurrentHashMap< String, Source > sources) | |
| void | setAlarmDAO (AlarmDAO alarmDAO) |
| void | setResponsiblePersonDAO (ResponsiblePersonDAO r) |
| Source | findSource (String sourceId) |
| Source | getSource (String sourceId) |
| Source[] | findAllSources () |
| Source | findByLaserSource () |
| void | saveSource (Source source) |
| void | deleteSource (Source source) |
| void | updateSource (Source source) |
| String[] | getAlarms (String sourceId) |
| void | setConfAccessor (ConfigurationAccessor conf) |
| void | setLaserSourceId (String laserSourceID) |
| String[] | getAllSourceIDs () |
Package Attributes | |
| ConfigurationAccessor | conf |
| AlarmDAO | alarmDAO |
| ResponsiblePersonDAO | responsiblePersonDAO |
| String | laserSourceID |
| ConcurrentHashMap< String, Source > | sourceDefs |
Private Member Functions | |
| void | saveSources () |
Private Attributes | |
| Logger | logger |
Static Private Attributes | |
| static final String | SOURCE_PATH = "/Alarms/SourceDefinitions" |
The sources are now defined together with the alarms and read by ACSAlarmDAOImpl i.e. object from this class do not need to read again the sources from the CDB. The sources definition are queried to ACSAlarmDAOImpl.
| com::cosylab::acs::laser::dao::ACSSourceDAOImpl::ACSSourceDAOImpl | ( | Logger | log, | |
| ConcurrentHashMap< String, Source > | sources | |||
| ) | [inline] |
Constructor.
The constructor takes the sources as parameter. After the refactory of the CDB the sources are read by the ACSAlarmDAOImpl because they are defined together with the alarms. By passing the sources as parameter, objects from this class avoid to read again the sources from the CDB.
| log | The logger | |
| sources | The sources |
References logger, and sourceDefs.
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::deleteSource | ( | Source | source | ) | [inline] |
Implements cern::laser::business::dao::SourceDAO.
References cern::laser::business::data::Source::getSourceId(), saveSources(), and sourceDefs.
| Source [] com::cosylab::acs::laser::dao::ACSSourceDAOImpl::findAllSources | ( | ) | [inline] |
Implements cern::laser::business::dao::SourceDAO.
References sourceDefs.
| Source com::cosylab::acs::laser::dao::ACSSourceDAOImpl::findByLaserSource | ( | ) | [inline] |
Implements cern::laser::business::dao::SourceDAO.
References findSource(), and laserSourceID.
| Source com::cosylab::acs::laser::dao::ACSSourceDAOImpl::findSource | ( | String | sourceId | ) | [inline] |
Implements cern::laser::business::dao::SourceDAO.
References getSource().
Referenced by findByLaserSource().
| String [] com::cosylab::acs::laser::dao::ACSSourceDAOImpl::getAlarms | ( | String | sourceId | ) | [inline] |
| String [] com::cosylab::acs::laser::dao::ACSSourceDAOImpl::getAllSourceIDs | ( | ) | [inline] |
References sourceDefs.
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| Source com::cosylab::acs::laser::dao::ACSSourceDAOImpl::getSource | ( | String | sourceId | ) | [inline] |
Implements cern::laser::business::dao::SourceDAO.
References sourceDefs.
Referenced by findSource().
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::saveSource | ( | Source | source | ) | [inline] |
Implements cern::laser::business::dao::SourceDAO.
References cern::laser::business::data::Source::getSourceId(), saveSources(), and sourceDefs.
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::saveSources | ( | ) | [inline, private] |
References com::cosylab::acs::laser::dao::xml::SourceDefinitionListType::addSourceDefinition(), conf, cern::laser::business::data::Source::getConnectionTimeout(), cern::laser::business::data::Source::getDescription(), cern::laser::business::data::ResponsiblePerson::getResponsibleId(), cern::laser::business::data::Source::getResponsiblePerson(), cern::laser::business::data::Source::getSourceId(), com::cosylab::acs::laser::dao::ConfigurationAccessor::isWriteable(), com::cosylab::acs::laser::dao::xml::SourceDefinitions::marshal(), com::cosylab::acs::laser::dao::ConfigurationAccessor::setConfiguration(), cern::laser::business::definition::data::SourceDefinition::setConnectionTimeout(), cern::laser::business::definition::data::SourceDefinition::setDescription(), cern::laser::business::definition::data::SourceDefinition::setName(), com::cosylab::acs::laser::dao::xml::SourceDefinitions::setSourcesToCreate(), SOURCE_PATH, and sourceDefs.
Referenced by deleteSource(), saveSource(), and updateSource().
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setAlarmDAO | ( | AlarmDAO | alarmDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setConfAccessor | ( | ConfigurationAccessor | conf | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setLaserSourceId | ( | String | laserSourceID | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::setResponsiblePersonDAO | ( | ResponsiblePersonDAO | r | ) | [inline] |
References responsiblePersonDAO.
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void com::cosylab::acs::laser::dao::ACSSourceDAOImpl::updateSource | ( | Source | source | ) | [inline] |
Implements cern::laser::business::dao::SourceDAO.
References cern::laser::business::data::Source::getSourceId(), saveSources(), and sourceDefs.
Referenced by getAlarms().
Referenced by saveSources().
String com::cosylab::acs::laser::dao::ACSSourceDAOImpl::laserSourceID [package] |
Referenced by findByLaserSource().
Logger com::cosylab::acs::laser::dao::ACSSourceDAOImpl::logger [private] |
Referenced by ACSSourceDAOImpl().
ResponsiblePersonDAO com::cosylab::acs::laser::dao::ACSSourceDAOImpl::responsiblePersonDAO [package] |
Referenced by setResponsiblePersonDAO().
final String com::cosylab::acs::laser::dao::ACSSourceDAOImpl::SOURCE_PATH = "/Alarms/SourceDefinitions" [static, private] |
Referenced by saveSources().
ConcurrentHashMap<String, Source> com::cosylab::acs::laser::dao::ACSSourceDAOImpl::sourceDefs [package] |
Referenced by ACSSourceDAOImpl(), deleteSource(), findAllSources(), getAllSourceIDs(), getSource(), saveSource(), saveSources(), and updateSource().
1.6.2