jetcd

Java client for etcd

License

License

Categories

Categories

Net jetcd Data Databases
GroupId

GroupId

net.floatingsun
ArtifactId

ArtifactId

jetcd
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

jetcd
Java client for etcd
Project URL

Project URL

https://github.com/diwakergupta/jetcd
Source Code Management

Source Code Management

https://github.com/diwakergupta/jetcd

Download jetcd

How to add to project

<!-- https://jarcasting.com/artifacts/net.floatingsun/jetcd/ -->
<dependency>
    <groupId>net.floatingsun</groupId>
    <artifactId>jetcd</artifactId>
    <version>0.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/net.floatingsun/jetcd/
implementation 'net.floatingsun:jetcd:0.3.1'
// https://jarcasting.com/artifacts/net.floatingsun/jetcd/
implementation ("net.floatingsun:jetcd:0.3.1")
'net.floatingsun:jetcd:jar:0.3.1'
<dependency org="net.floatingsun" name="jetcd" rev="0.3.1">
  <artifact name="jetcd" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.floatingsun', module='jetcd', version='0.3.1')
)
libraryDependencies += "net.floatingsun" % "jetcd" % "0.3.1"
[net.floatingsun/jetcd "0.3.1"]

Dependencies

compile (4)

Group / Artifact Type Version
com.google.guava : guava jar 18.0
com.squareup.retrofit : converter-jackson jar 1.7.0
org.slf4j : slf4j-api jar 1.7.7
com.squareup.retrofit : retrofit jar 1.7.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.assertj : assertj-core jar 1.7.0

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.3.1
0.3.0
0.2.0
0.1.0