Java client for etcd
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config/checkstyle
gradle/wrapper
src
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

jetcd: A Java client for etcd

Build Status

Download

<dependency>
  <groupId>net.floatingsun</groupId>
  <artifactId>jetcd</artifactId>
  <version>0.3.0</version>
</dependency>

Usage

// Connects to "http://127.0.0.1:4001" by default
EtcdClient client = EtcdClientFactory.newInstance();
// Use EtcdClientFactory.newInstance(serverUrl) to override

client.setKey("hello", "world");
client.getKey("hello") // returns "world"
client.deleteKey("hello")

TODO

  • multiple servers with redirect
  • retries and better failure handling
  • better unification of 'getKey' and 'list'
  • support for watch