Package org.apache.pulsar.shell.config
Class FileConfigStore
java.lang.Object
org.apache.pulsar.shell.config.FileConfigStore
- All Implemented Interfaces:
ConfigStore
File based configurations store.
All the configurations are stored in a single file in JSON format.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.pulsar.shell.config.ConfigStore
ConfigStore.ConfigEntry -
Field Summary
Fields inherited from interface org.apache.pulsar.shell.config.ConfigStore
DEFAULT_CONFIG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteConfig(String name) voidputConfig(ConfigStore.ConfigEntry entry) voidsetLastUsed(String name)
-
Constructor Details
-
FileConfigStore
- Throws:
IOException
-
-
Method Details
-
putConfig
- Specified by:
putConfigin interfaceConfigStore- Throws:
IOException
-
getConfig
- Specified by:
getConfigin interfaceConfigStore
-
deleteConfig
- Specified by:
deleteConfigin interfaceConfigStore- Throws:
IOException
-
listConfigs
- Specified by:
listConfigsin interfaceConfigStore
-
setLastUsed
- Specified by:
setLastUsedin interfaceConfigStore- Throws:
IOException
-
getLastUsed
- Specified by:
getLastUsedin interfaceConfigStore- Throws:
IOException
-