public interface ZooKeeperClient extends org.elasticsearch.common.component.LifecycleComponent<ZooKeeperClient>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ZooKeeperClient.NodeListChangedListener |
static interface |
ZooKeeperClient.NodeListener |
static interface |
ZooKeeperClient.SessionStateListener |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionStateListener(ZooKeeperClient.SessionStateListener sessionStateListener) |
boolean |
connected() |
String |
createLargeSequentialNode(String pathPrefix,
byte[] data) |
void |
createPersistentNode(String path) |
void |
deleteLargeNode(String path) |
void |
deleteNode(String path) |
void |
deleteNodeRecursively(String path) |
byte[] |
getLargeNode(String path) |
byte[] |
getNode(String path,
ZooKeeperClient.NodeListener nodeListener) |
byte[] |
getOrCreateTransientNode(String path,
byte[] data,
ZooKeeperClient.NodeListener nodeListener) |
Set<String> |
listNodes(String path,
ZooKeeperClient.NodeListChangedListener nodeListChangedListener) |
void |
removeSessionStateListener(ZooKeeperClient.SessionStateListener sessionStateListener) |
long |
sessionId() |
void |
setOrCreatePersistentNode(String path,
byte[] data) |
void |
setOrCreateTransientNode(String path,
byte[] data) |
boolean |
verifyConnection(org.elasticsearch.common.unit.TimeValue timeout) |
void createPersistentNode(String path) throws InterruptedException
InterruptedExceptionvoid setOrCreatePersistentNode(String path, byte[] data) throws InterruptedException
InterruptedExceptionbyte[] getOrCreateTransientNode(String path, byte[] data, ZooKeeperClient.NodeListener nodeListener) throws InterruptedException
InterruptedExceptionvoid setOrCreateTransientNode(String path, byte[] data) throws InterruptedException
InterruptedExceptionbyte[] getNode(String path, ZooKeeperClient.NodeListener nodeListener) throws InterruptedException
InterruptedExceptionSet<String> listNodes(String path, ZooKeeperClient.NodeListChangedListener nodeListChangedListener) throws InterruptedException
InterruptedExceptionvoid deleteNode(String path) throws InterruptedException
InterruptedExceptionvoid deleteNodeRecursively(String path) throws InterruptedException
InterruptedExceptionString createLargeSequentialNode(String pathPrefix, byte[] data) throws InterruptedException
InterruptedExceptionvoid deleteLargeNode(String path) throws InterruptedException
InterruptedExceptionbyte[] getLargeNode(String path) throws InterruptedException
InterruptedExceptionvoid addSessionStateListener(ZooKeeperClient.SessionStateListener sessionStateListener)
void removeSessionStateListener(ZooKeeperClient.SessionStateListener sessionStateListener)
boolean verifyConnection(org.elasticsearch.common.unit.TimeValue timeout)
throws InterruptedException
InterruptedExceptionboolean connected()
long sessionId()
Copyright © 2011–2014 JBoss by Red Hat. All rights reserved.