Class ZkContainer


  • public class ZkContainer
    extends Object
    Used by CoreContainer to hold ZooKeeper / SolrCloud info, especially ZkController. Mainly it does some ZK initialization, and ensures a loading core registers in ZK. Even when in standalone mode, perhaps surprisingly, an instance of this class exists. If getZkController() returns null then we're in standalone mode.
    • Constructor Detail

      • ZkContainer

        public ZkContainer()
    • Method Detail

      • registerInZk

        public void registerInZk​(SolrCore core,
                                 boolean background,
                                 boolean skipRecovery)
      • close

        public void close()
      • getCoreZkRegisterExecutorService

        public ExecutorService getCoreZkRegisterExecutorService()