java.io.Closeable, java.lang.AutoCloseable, CuratorWatcherpublic class EnsembleTracker extends java.lang.Object implements java.io.Closeable, CuratorWatcher
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
static java.lang.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 start()
throws java.lang.Exception
java.lang.Exceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablepublic void process(org.apache.zookeeper.WatchedEvent event)
throws java.lang.Exception
CuratorWatcherWatcher.process(WatchedEvent). If an exception
is thrown, Curator will log itprocess in interface CuratorWatcherevent - the eventjava.lang.Exception - any exceptions to logpublic org.apache.zookeeper.server.quorum.flexible.QuorumVerifier getCurrentConfig()
public boolean hasOutstanding()
public static java.lang.String configToConnectionString(org.apache.zookeeper.server.quorum.flexible.QuorumVerifier data)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.