Class ZkContainer

java.lang.Object
org.apache.solr.core.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.
  • Field Details

  • Constructor Details

    • ZkContainer

      public ZkContainer()
  • Method Details

    • initZooKeeper

      public void initZooKeeper(CoreContainer cc, CloudConfig config)
    • registerInZk

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

      public ZkController getZkController()
    • close

      public void close()
    • getCoreZkRegisterExecutorService

      public ExecutorService getCoreZkRegisterExecutorService()
    • getZkMetricsProducer

      public SolrMetricProducer getZkMetricsProducer()