Install & Config
jetcd is available from the Maven Central Repository
Maven
Add the following to the <dependencies>
section in your pom.xml
<dependency>
<groupId>com.daedafusion</groupId>
<artifactId>jetcd</artifactId>
<version>1.0</version>
</dependency>
Configuration
By default, a client will connect to localhost
on the default etcd port (4001)
EtcdClient client = EtcdClientFactory.newInstance();
If you want to specify an alternate host, port or protocol, provide the entire connection URL
EtcdClient client = EtcdClientFactory.newInstance("https://etcd.mydomain.com:4001");