Interface DurableConfigurationStore

    • Method Detail

      • upgradeStoreStructure

        void upgradeStoreStructure()
                            throws StoreException
        Requests that the store performs any upgrade work on the store's structure. If there is no upgrade work to be done, this method should return without doing anything.
        Throws:
        StoreException - signals that a problem was encountered trying to upgrade the store. Implementations, on encountering a problem, should endeavour to leave the store in its original state.
      • update

        void update​(boolean createIfNecessary,
                    ConfiguredObjectRecord... records)
             throws StoreException
        Updates the specified objects in the persistent store, IF it is already present. If the object is not present in the store, it will only be added if createIfNecessary is set to true, otherwise an exception will be thrown.
        Parameters:
        createIfNecessary - if false then will fail if the object does not exist.
        records - the records to update
        Throws:
        StoreException - If the operation fails for any reason.
      • onDelete

        void onDelete​(ConfiguredObject<?> parent)
        Deletes the configuration store from its underlying storage. If the store has not be opened, then this call will be ignored. The store should be closed before making this call.