An open API service indexing awesome lists of open source software.

https://github.com/cdancy/etcd-java

Java implementation of etcd v2 protocol.
https://github.com/cdancy/etcd-java

Last synced: 12 months ago
JSON representation

Java implementation of etcd v2 protocol.

Awesome Lists containing this project

README

          

# etcd-java
![alt tag](https://github.com/cdancy/etcd/blob/master/logos/etcd-horizontal-color.png)

Java implementation of Etcd v2.

## Status

[![Build Status](https://travis-ci.org/cdancy/etcd-java.svg?branch=master)](https://travis-ci.org/cdancy/etcd-java)

** Project is currently in development and NOT ready for ANY sort of use **

## Setup

Start server like so:

EtcdJava etcd = new EtcdJava();
etcd.start();

// do some work...

etcd.stop();

## Latest release

Can be sourced from jcenter like so:


com.cdancy
etcd-java
0.0.1
sources|javadoc|all (Optional)


## Documentation

javadocs can be found via [github pages here](http://cdancy.github.io/etcd-java/docs/javadoc/)

## Components

- [netty-http](https://github.com/caskdata/netty-http) \- used for client communication
- [atomix-copycat](https://github.com/atomix/copycat) \- used for peer communication

## Testing

Running mock tests can be done like so:

./gradlew clean build mockTest

Running integration tests can be done like so (requires docker):

./gradlew clean build integTest

Running integration tests without invoking docker can be done like so:

./gradlew clean build integTest -PbootstrapDocker=false -PtestEtcdEndpoint=http://127.0.0.1:2379

## Additional Resources

* [Etcd grpc-to-json gateway](https://github.com/coreos/etcd/blob/master/Documentation/dev-guide/api_grpc_gateway.md)
* [Etcd grpc-to-json swagger](https://github.com/coreos/etcd/blob/master/Documentation/dev-guide/apispec/swagger/rpc.swagger.json)
* [Etcd REST API](https://github.com/coreos/etcd/blob/master/Documentation/api.md)
* [Etcd Auth API](https://github.com/coreos/etcd/blob/master/Documentation/auth_api.md)