Interface QueryablePersistenceService

All Superinterfaces:
PersistenceService
All Known Subinterfaces:
ModifiablePersistenceService

@NonNullByDefault public interface QueryablePersistenceService extends PersistenceService
A queryable persistence service which can be used to store and retrieve data from openHAB. This is most likely some kind of database system.
Author:
Kai Kreuzer - Initial contribution, Chris Jackson - Added getItems method
  • Method Details

    • query

      Queries the PersistenceService for historic data with a given FilterCriteria.
      Parameters:
      filter - the filter to apply to the query
      Returns:
      a time series of items
    • getItemInfo

      Set<PersistenceItemInfo> getItemInfo()
      Returns a set of PersistenceItemInfo about items that are stored in the persistence service. This allows the persistence service to return information about items that are no long available as an Item in openHAB. If it is not possible to retrieve the information an empty set should be returned.
      Returns:
      a set of information about the persisted items