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 |
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 | |||
) |
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 |
Reimplemented in cl.utfsm.acs.acg.dao.ACSSourceDAOImpl.
References com.cosylab.acs.laser.dao.ACSSourceDAOImpl.sourceDefs.
void com.cosylab.acs.laser.dao.ACSSourceDAOImpl.deleteSource | ( | Source | source | ) |
Source [] com.cosylab.acs.laser.dao.ACSSourceDAOImpl.findAllSources | ( | ) |
Implements cern.laser.business.dao.SourceDAO.
References com.cosylab.acs.laser.dao.ACSSourceDAOImpl.sourceDefs.
Source com.cosylab.acs.laser.dao.ACSSourceDAOImpl.findByLaserSource | ( | ) |
Source com.cosylab.acs.laser.dao.ACSSourceDAOImpl.findSource | ( | String | sourceId | ) |
Implements cern.laser.business.dao.SourceDAO.
References com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getSource().
Referenced by com.cosylab.acs.laser.dao.ACSSourceDAOImpl.findByLaserSource().
String [] com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getAlarms | ( | String | sourceId | ) |
String [] com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getAllSourceIDs | ( | ) |
References com.cosylab.acs.laser.dao.ACSSourceDAOImpl.sourceDefs.
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
Source com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getSource | ( | String | sourceId | ) |
Implements cern.laser.business.dao.SourceDAO.
References com.cosylab.acs.laser.dao.ACSSourceDAOImpl.sourceDefs.
Referenced by com.cosylab.acs.laser.dao.ACSSourceDAOImpl.findSource().
void com.cosylab.acs.laser.dao.ACSSourceDAOImpl.saveSource | ( | Source | source | ) |
void com.cosylab.acs.laser.dao.ACSSourceDAOImpl.setAlarmDAO | ( | AlarmDAO | alarmDAO | ) |
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
void com.cosylab.acs.laser.dao.ACSSourceDAOImpl.setConfAccessor | ( | ConfigurationAccessor | conf | ) |
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
void com.cosylab.acs.laser.dao.ACSSourceDAOImpl.setLaserSourceId | ( | String | laserSourceID | ) |
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
void com.cosylab.acs.laser.dao.ACSSourceDAOImpl.setResponsiblePersonDAO | ( | ResponsiblePersonDAO | r | ) |
References com.cosylab.acs.laser.dao.ACSSourceDAOImpl.responsiblePersonDAO.
Referenced by com.cosylab.acs.laser.LaserComponent.initialize().
void com.cosylab.acs.laser.dao.ACSSourceDAOImpl.updateSource | ( | Source | source | ) |
Referenced by com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getAlarms().
String com.cosylab.acs.laser.dao.ACSSourceDAOImpl.laserSourceID [package] |
ConcurrentHashMap<String, Source> com.cosylab.acs.laser.dao.ACSSourceDAOImpl.sourceDefs [package] |
Referenced by com.cosylab.acs.laser.dao.ACSSourceDAOImpl.ACSSourceDAOImpl(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.deleteSource(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.findAllSources(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getAllSourceIDs(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getSource(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.saveSource(), and com.cosylab.acs.laser.dao.ACSSourceDAOImpl.updateSource().