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 Closeable
close
in interface AutoCloseable
public void process(org.apache.zookeeper.WatchedEvent event) throws Exception
CuratorWatcher
Watcher.process(WatchedEvent)
. If an exception
is thrown, Curator will log itprocess
in interface CuratorWatcher
event
- the eventException
- any exceptions to logpublic org.apache.zookeeper.server.quorum.flexible.QuorumVerifier getCurrentConfig()
public boolean hasOutstanding()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.