Package org.opennms.plugins.cloud.config
Class KvConfigStore
- java.lang.Object
-
- org.opennms.plugins.cloud.config.KvConfigStore
-
- All Implemented Interfaces:
ConfigStore
public class KvConfigStore extends java.lang.Object implements ConfigStore
ConfigStore backed by KeyValueStore.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opennms.plugins.cloud.config.ConfigStore
ConfigStore.Key
-
-
Field Summary
-
Fields inherited from interface org.opennms.plugins.cloud.config.ConfigStore
STORE_PREFIX, TOKEN_KEY
-
-
Constructor Summary
Constructors Constructor Description KvConfigStore(org.opennms.integration.api.v1.distributed.KeyValueStore<java.lang.String> keyValueStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringfromJson(java.lang.String valueJson)java.util.Optional<java.lang.String>get(ConfigStore.Key type)java.lang.StringgetOrNull(ConfigStore.Key key)voidputProperties(java.util.Map<ConfigStore.Key,java.lang.String> properties)voidputProperty(ConfigStore.Key key, java.lang.String value)java.lang.StringtoJson(java.lang.String value)
-
-
-
Method Detail
-
getOrNull
public java.lang.String getOrNull(ConfigStore.Key key)
- Specified by:
getOrNullin interfaceConfigStore
-
get
public java.util.Optional<java.lang.String> get(ConfigStore.Key type)
- Specified by:
getin interfaceConfigStore
-
putProperty
public void putProperty(ConfigStore.Key key, java.lang.String value)
- Specified by:
putPropertyin interfaceConfigStore
-
putProperties
public void putProperties(java.util.Map<ConfigStore.Key,java.lang.String> properties)
- Specified by:
putPropertiesin interfaceConfigStore
-
toJson
public java.lang.String toJson(java.lang.String value)
-
fromJson
public java.lang.String fromJson(java.lang.String valueJson)
-
-