This is a basic client for connecting to etcd.
<dependency>
<groupId>com.daedafusion</groupId>
<artifactId>jetcd</artifactId>
<version>1.1</version>
</dependency
<dependency>
<groupId>com.daedafusion</groupId>
<artifactId>jetcd</artifactId>
<version>1.2-SNAPSHOT</version>
</dependency
EtcdClient client = EtcdClientFactory.newInstance() // http://localhost:4001
EtcdResult result = client.set("/foobar", "test")
result = client.get(key);
assertThat(result.getNode().getValue(), is("hello"));
- set/get
- delete
- set w/ ttl
- refresh
- create/list/delete directory
- cas/cad
- watch