Class JsonFilePreferenceStore
- java.lang.Object
-
- org.apache.qpid.server.store.AbstractJsonFileStore
-
- org.apache.qpid.server.store.preferences.JsonFilePreferenceStore
-
- All Implemented Interfaces:
PreferenceStore
public class JsonFilePreferenceStore extends AbstractJsonFileStore implements PreferenceStore
-
-
Constructor Summary
Constructors Constructor Description JsonFilePreferenceStore(String path, String posixFilePermissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected com.fasterxml.jackson.databind.ObjectMapper
getSerialisationObjectMapper()
void
onDelete()
Collection<PreferenceRecord>
openAndLoad(PreferenceStoreUpdater updater)
void
replace(Collection<UUID> preferenceRecordsToRemove, Collection<PreferenceRecord> preferenceRecordsToAdd)
void
updateOrCreate(Collection<PreferenceRecord> preferenceRecords)
-
Methods inherited from class org.apache.qpid.server.store.AbstractJsonFileStore
cleanup, delete, getConfigFile, save, setup
-
-
-
-
Method Detail
-
openAndLoad
public Collection<PreferenceRecord> openAndLoad(PreferenceStoreUpdater updater) throws StoreException
- Specified by:
openAndLoad
in interfacePreferenceStore
- Throws:
StoreException
-
close
public void close()
- Specified by:
close
in interfacePreferenceStore
-
updateOrCreate
public void updateOrCreate(Collection<PreferenceRecord> preferenceRecords)
- Specified by:
updateOrCreate
in interfacePreferenceStore
-
replace
public void replace(Collection<UUID> preferenceRecordsToRemove, Collection<PreferenceRecord> preferenceRecordsToAdd)
- Specified by:
replace
in interfacePreferenceStore
-
onDelete
public void onDelete()
- Specified by:
onDelete
in interfacePreferenceStore
-
getSerialisationObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getSerialisationObjectMapper()
- Specified by:
getSerialisationObjectMapper
in classAbstractJsonFileStore
-
-