Class 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
      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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • process

        public void process​(org.apache.zookeeper.WatchedEvent event)
                     throws java.lang.Exception
        Description copied from interface: CuratorWatcher
        Same as Watcher.process(WatchedEvent). If an exception is thrown, Curator will log it
        Specified by:
        process in interface CuratorWatcher
        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