public class FileSystemConfigurationStoreImpl extends Object implements IConfigurationStore
IConfigurationStore
implementation.Constructor and Description |
---|
FileSystemConfigurationStoreImpl(String root,
String adminTopic)
Ctor
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfPathExist(String path) |
ISettingsMap |
readMap(String path)
Read a Json encoded content from your store.
|
void |
rmr(String path)
Completely remove a path and all its childs
|
void |
writeMap(ISettingsMap map,
String path)
Write a map as a Json string the admin database
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, refresh, startBlocking
public FileSystemConfigurationStoreImpl(String root, String adminTopic) throws ConfigurationException
root
- the root node. Every data will be read/written from that root.ConfigurationException
public ISettingsMap readMap(String path)
IConfigurationStore
readMap
in interface IConfigurationStore
path
- the path of the data you wantpublic void writeMap(ISettingsMap map, String path)
IConfigurationStore
writeMap
in interface IConfigurationStore
map
- your settings mappath
- the path of the data you wantpublic boolean checkIfPathExist(String path)
checkIfPathExist
in interface IConfigurationStore
path
- a configuration node pathpublic void rmr(String path)
IConfigurationStore
rmr
in interface IConfigurationStore
path
- the path you want to removeCopyright © 2014–2023. All rights reserved.