Package org.eso.ias.converter.config
Interface IasioConfigurationDAO
- All Known Implementing Classes:
Cache,ConfigurationDaoBase
public interface IasioConfigurationDAO
The DAO interface to get the configuration of the DAO.
Implementers of this interface get the configuration of the monitor point from the configuration database: calling this method can considerably slow down the conversion task.
It is recommended to reduce the accesses to the configuration database for example with a cache.
- Author:
- acaproni
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the DAO freeing all the acquired resourcesgetConfiguration(String mpId) Get the configuration of the the monitor point with the passed ID.voidInitialize the DAObooleanisClosed()boolean
-
Method Details
-
initialize
Initialize the DAO- Throws:
ConfigurationException- in case of error initializing
-
isInitialized
boolean isInitialized()- Returns:
trueif the DAO has been initialized
-
getConfiguration
Get the configuration of the the monitor point with the passed ID.- Parameters:
mpId- The notnullnor empty ID of the MP- Returns:
- The configuration of the MP with the passed ID
or
nullif such configuration does not exist
-
close
Close the DAO freeing all the acquired resources- Throws:
ConfigurationException- in case of error closing
-
isClosed
boolean isClosed()- Returns:
trueif the DAO has been closed
-