Class EnsembleTracker
- java.lang.Object
-
- org.apache.curator.framework.imps.EnsembleTracker
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,CuratorWatcher
public class EnsembleTracker extends java.lang.Object implements java.io.Closeable, CuratorWatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static java.lang.StringconfigToConnectionString(org.apache.zookeeper.server.quorum.flexible.QuorumVerifier data)org.apache.zookeeper.server.quorum.flexible.QuorumVerifiergetCurrentConfig()Return the current quorum configbooleanhasOutstanding()voidprocess(org.apache.zookeeper.WatchedEvent event)Same asWatcher.process(WatchedEvent).voidstart()
-
-
-
Method Detail
-
start
public void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
process
public void process(org.apache.zookeeper.WatchedEvent event) throws java.lang.ExceptionDescription 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:
java.lang.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 java.lang.String configToConnectionString(org.apache.zookeeper.server.quorum.flexible.QuorumVerifier data) throws java.lang.Exception- Throws:
java.lang.Exception
-
-