Class EnsembleTracker
java.lang.Object
org.apache.curator.framework.imps.EnsembleTracker
- All Implemented Interfaces:
Closeable,AutoCloseable,CuratorWatcher
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static StringconfigToConnectionString(org.apache.zookeeper.server.quorum.flexible.QuorumVerifier data) org.apache.zookeeper.server.quorum.flexible.QuorumVerifierReturn the current quorum configbooleanvoidprocess(org.apache.zookeeper.WatchedEvent event) Same asWatcher.process(WatchedEvent).voidstart()
-
Method Details
-
start
- Throws:
Exception
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
process
Description copied from interface:CuratorWatcherSame asWatcher.process(WatchedEvent). If an exception is thrown, Curator will log it- Specified by:
processin interfaceCuratorWatcher- Parameters:
event- the event- Throws:
Exception- any exceptions to log
-
getCurrentConfig
public org.apache.zookeeper.server.quorum.flexible.QuorumVerifier getCurrentConfig()Return the current quorum config- Returns:
- config
-
hasOutstanding
public boolean hasOutstanding() -
configToConnectionString
public static String configToConnectionString(org.apache.zookeeper.server.quorum.flexible.QuorumVerifier data) throws Exception - Throws:
Exception
-