public class EnsembleTracker extends Object implements Closeable, CuratorWatcher
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static String |
configToConnectionString(org.apache.zookeeper.server.quorum.flexible.QuorumVerifier data) |
org.apache.zookeeper.server.quorum.flexible.QuorumVerifier |
getCurrentConfig()
Return the current quorum config
|
boolean |
hasOutstanding() |
void |
process(org.apache.zookeeper.WatchedEvent event)
Same as
Watcher.process(WatchedEvent). |
void |
start() |
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void process(org.apache.zookeeper.WatchedEvent event)
throws Exception
CuratorWatcherWatcher.process(WatchedEvent). If an exception
is thrown, Curator will log itprocess in interface CuratorWatcherevent - the eventException - any exceptions to logpublic org.apache.zookeeper.server.quorum.flexible.QuorumVerifier getCurrentConfig()
public boolean hasOutstanding()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.