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 Details

    • initialize

      void initialize() throws ConfigurationException
      Initialize the DAO
      Throws:
      ConfigurationException - in case of error initializing
    • isInitialized

      boolean isInitialized()
      Returns:
      true if the DAO has been initialized
    • getConfiguration

      Optional<MonitorPointConfiguration> getConfiguration(String mpId)
      Get the configuration of the the monitor point with the passed ID.
      Parameters:
      mpId - The not null nor empty ID of the MP
      Returns:
      The configuration of the MP with the passed ID or null if such configuration does not exist
    • close

      void close() throws ConfigurationException
      Close the DAO freeing all the acquired resources
      Throws:
      ConfigurationException - in case of error closing
    • isClosed

      boolean isClosed()
      Returns:
      true if the DAO has been closed