Interface MeasurementsDaoRegistry

All Known Implementing Classes:
MeasurementsDaoRegistryImpl

public interface MeasurementsDaoRegistry
Registry for all existing DAOs.
  • Method Details

    • register

      void register(MeasurementsDao<?,?> dao, String uuid)
      Registers a new DAO.
      Parameters:
      dao - The DAO to register.
      uuid - The UUID for which the DAO is responsible.
    • deregister

      void deregister(String uuid)
      Deregisters an registered DAO.
      Parameters:
      uuid - The UUID of the registered DAO.
    • isRegistered

      boolean isRegistered(String uuid)
      Checks if a DAO is registered for the UUID.
      Parameters:
      uuid - The UUID of the DAO.
      Returns:
      true if there is a DAO registered.
    • getRegisteredUuids

      Set<String> getRegisteredUuids()
      Returns the registered UUIDs.
      Returns:
      List with all registered UUIDs.
    • getMeasurementsDao

      MeasurementsDao<?,?> getMeasurementsDao(String uuid)
      Returns a registered DAO.
      Parameters:
      uuid - The UUID of the DAO.
      Returns:
      The DAO.