public interface DurableConfigurationStore
| Modifier and Type | Method and Description |
|---|---|
void |
closeConfigurationStore() |
void |
create(ConfiguredObjectRecord object)
Makes the specified object persistent.
|
void |
onDelete(ConfiguredObject<?> parent)
Deletes the configuration store from its underlying storage.
|
void |
openConfigurationStore(ConfiguredObject<?> parent,
boolean overwrite,
ConfiguredObjectRecord... initialRecords)
Initializes and opens the configuration store.
|
UUID[] |
remove(ConfiguredObjectRecord... objects)
Removes the specified persistent configured objects.
|
void |
update(boolean createIfNecessary,
ConfiguredObjectRecord... records)
Updates the specified objects in the persistent store, IF it is already present.
|
void |
upgradeStoreStructure()
Requests that the store performs any upgrade work on the store's structure.
|
void |
visitConfiguredObjectRecords(ConfiguredObjectRecordHandler handler)
Visit all configured object records with given handler.
|
void openConfigurationStore(ConfiguredObject<?> parent, boolean overwrite, ConfiguredObjectRecord... initialRecords) throws StoreException
parent - overwrite - initialRecords - StoreExceptionvoid upgradeStoreStructure()
throws StoreException
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.void visitConfiguredObjectRecords(ConfiguredObjectRecordHandler handler) throws StoreException
handler - a handler to invoke on each configured object recordStoreExceptionvoid create(ConfiguredObjectRecord object) throws StoreException
object - The object to persist.StoreException - If the operation fails for any reason.void update(boolean createIfNecessary,
ConfiguredObjectRecord... records)
throws StoreException
createIfNecessary - if false then will fail if the object does not exist.records - the records to updateStoreException - If the operation fails for any reason.UUID[] remove(ConfiguredObjectRecord... objects) throws StoreException
objects - The objects to remove.StoreException - If the operation fails for any reason.void closeConfigurationStore()
throws StoreException
StoreExceptionvoid onDelete(ConfiguredObject<?> parent)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.