public KeyValue getKeyValue ( String KeyURI ) throws EmbeddedJmxTransException { String etcdURI = KeyURI . substring ( 0 , KeyURI . indexOf ( "/" , 7 ) ) ; String key = KeyURI . substring ( KeyURI . indexOf ( "/" , 7 ) ) ; try { return getFromEtcd ( makeEtcdBaseUris ( etcdURI ) , key ) ; } catch ( Throwable t ) { throw new EmbeddedJmxTransException ( "Exception reading etcd key '" + KeyURI + "': " + t . getMessage ( ) , t ) ; } }
Get a key value from etcd . Returns the key value and the etcd modification index as version