| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.util.concurrent.ListenableFuture<EtcdResult> |
EtcdClient.asyncExecute(org.apache.http.client.methods.HttpUriRequest request,
int[] expectedHttpStatusCodes,
int... expectedErrorCodes) |
protected com.google.common.util.concurrent.ListenableFuture<com.justinsb.etcd.EtcdClient.JsonResponse> |
EtcdClient.asyncExecuteJson(org.apache.http.client.methods.HttpUriRequest request,
int[] expectedHttpStatusCodes) |
EtcdResult |
EtcdClient.cas(String key,
String prevValue,
String value)
Sets a key to a new value, if the value is a specified value
|
EtcdResult |
EtcdClient.createDirectory(String key)
Creates a directory
|
EtcdResult |
EtcdClient.delete(String key)
Deletes the given key
|
EtcdResult |
EtcdClient.deleteDirectory(String key)
Delete a directory
|
protected com.justinsb.etcd.EtcdClient.JsonResponse |
EtcdClient.extractJsonResponse(org.apache.http.HttpResponse httpResponse,
int[] expectedHttpStatusCodes) |
EtcdResult |
EtcdClient.get(String key)
Retrieves a key.
|
String |
EtcdClient.getVersion()
Gets the etcd version
|
EtcdResult |
EtcdClient.listChildren(String key) |
List<EtcdNode> |
EtcdClient.listDirectory(String key)
Lists a directory
|
EtcdResult |
EtcdClient.set(String key,
String value)
Sets a key to a new value
|
EtcdResult |
EtcdClient.set(String key,
String value,
Integer ttl)
Sets a key to a new value with an (optional) ttl
|
protected EtcdResult |
EtcdClient.syncExecute(org.apache.http.client.methods.HttpUriRequest request,
int[] expectedHttpStatusCodes,
int... expectedErrorCodes) |
protected com.justinsb.etcd.EtcdClient.JsonResponse |
EtcdClient.syncExecuteJson(org.apache.http.client.methods.HttpUriRequest request,
int... expectedHttpStatusCodes) |
protected List<EtcdResult> |
EtcdClient.syncExecuteList(org.apache.http.client.methods.HttpUriRequest request) |
com.google.common.util.concurrent.ListenableFuture<EtcdResult> |
EtcdClient.watch(String key)
Watches the given subtree
|
com.google.common.util.concurrent.ListenableFuture<EtcdResult> |
EtcdClient.watch(String key,
Long index,
boolean recursive)
Watches the given subtree
|
Copyright © 2014. All Rights Reserved.