Skip to content

daedafusion/jetcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jetcd - Java client for etcd

Build Status

Coverage Status

This is a basic client for connecting to etcd.

Maven

<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

Examples

EtcdClient client = EtcdClientFactory.newInstance() // http://localhost:4001

EtcdResult result = client.set("/foobar", "test")

result = client.get(key);
assertThat(result.getNode().getValue(), is("hello"));

Supported Features

  • set/get
  • delete
  • set w/ ttl
  • refresh
  • create/list/delete directory
  • cas/cad
  • watch