public class ZkContainer extends Object
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.Modifier and Type | Field and Description |
---|---|
static Predicate<CoreDescriptor> |
testing_beforeRegisterInZk |
protected ZkController |
zkController |
Constructor and Description |
---|
ZkContainer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ExecutorService |
getCoreZkRegisterExecutorService() |
ZkController |
getZkController() |
void |
initZooKeeper(CoreContainer cc,
CloudConfig config) |
void |
registerInZk(SolrCore core,
boolean background,
boolean skipRecovery) |
protected ZkController zkController
public static volatile Predicate<CoreDescriptor> testing_beforeRegisterInZk
public void initZooKeeper(CoreContainer cc, CloudConfig config)
public void registerInZk(SolrCore core, boolean background, boolean skipRecovery)
public ZkController getZkController()
public void close()
public ExecutorService getCoreZkRegisterExecutorService()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.