Class Zookeeper


  • public class Zookeeper
    extends Object
    • Constructor Detail

      • Zookeeper

        public Zookeeper()
    • Method Detail

      • setInstance

        public static void setInstance​(Zookeeper u)
        Provide an instance of this class for delegates to use. To mock out delegated methods, provide an instance of a subclass that overrides the implementation of the delegated method.
        Parameters:
        u - a Zookeeper instance
      • resetInstance

        public static void resetInstance()
        Resets the singleton instance to the default. This is helpful to reset the class to its original functionality when mocking is no longer desired.
      • mkInprocessZookeeper

        public static org.apache.storm.shade.org.apache.zookeeper.server.NIOServerCnxnFactory mkInprocessZookeeper​(String localdir,
                                                                                                                   Integer port)
                                                                                                            throws Exception
        Throws:
        Exception
      • shutdownInprocessZookeeper

        public static void shutdownInprocessZookeeper​(org.apache.storm.shade.org.apache.zookeeper.server.NIOServerCnxnFactory handle)
      • toNimbusInfo

        public static NimbusInfo toNimbusInfo​(org.apache.storm.shade.org.apache.curator.framework.recipes.leader.Participant participant)