Package org.jmxtrans.embedded.config
Interface KVStore
- All Known Implementing Classes:
EtcdKVStore
public interface KVStore
This interface represents a super simplified key value store from which you can only read keys.
You get back the key value and a version id
- Author:
- Simone Zorzetti
-
Method Summary
Modifier and Type Method Description KeyValuegetKeyValue(String KeyURI)Retrieves the value of a key from the kv store.
-
Method Details
-
getKeyValue
Retrieves the value of a key from the kv store. The version can be used to determine if a key was changed since the last read- Parameters:
KeyURI- : uri of the key eg: etcd://127.0.0.1:123/level1/config for a cluster you can use etcd://[ipaddr1:port1, ipaddr:port2,...]:/path- Returns:
- a KeyValue object which hold the key value and the version id (modification index or trx id)
- Throws:
EmbeddedJmxTransException
-