Class EnsembleTracker
java.lang.Object
org.apache.curator.framework.imps.EnsembleTracker
- All Implemented Interfaces:
Closeable
,AutoCloseable
,CuratorWatcher
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static String
configToConnectionString
(org.apache.zookeeper.server.quorum.flexible.QuorumVerifier data) org.apache.zookeeper.server.quorum.flexible.QuorumVerifier
Return the current quorum configboolean
void
process
(org.apache.zookeeper.WatchedEvent event) Same asWatcher.process(WatchedEvent)
.void
start()
-
Method Details
-
start
- Throws:
Exception
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
process
Description copied from interface:CuratorWatcher
Same asWatcher.process(WatchedEvent)
. If an exception is thrown, Curator will log it- Specified by:
process
in 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
-