public class ZkContainer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOST_CONTEXT
Deprecated.
will be remove in Solr 5.0 (SOLR-4622)
|
static String |
DEFAULT_HOST_PORT
Deprecated.
will be remove in Solr 5.0 (SOLR-4622)
|
protected static org.slf4j.Logger |
log |
protected ZkController |
zkController |
Constructor and Description |
---|
ZkContainer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SolrConfig |
getSolrConfigFromZk(String zkConfigName,
String solrConfigFileName,
SolrResourceLoader resourceLoader) |
ZkController |
getZkController() |
void |
initZooKeeper(CoreContainer cc,
String solrHome,
ConfigSolr config) |
void |
initZooKeeper(CoreContainer cc,
String solrHome,
String zkHost,
int zkClientTimeout,
String hostPort,
String hostContext,
String host,
int leaderVoteWait,
int leaderConflictResolveWait,
boolean genericCoreNodeNames) |
static boolean |
isZkMode() |
void |
publishCoresAsDown(List<SolrCore> cores) |
void |
registerInZk(SolrCore core,
boolean background) |
protected static org.slf4j.Logger log
public static final String DEFAULT_HOST_CONTEXT
public static final String DEFAULT_HOST_PORT
protected ZkController zkController
public void initZooKeeper(CoreContainer cc, String solrHome, ConfigSolr config)
public static boolean isZkMode()
public void initZooKeeper(CoreContainer cc, String solrHome, String zkHost, int zkClientTimeout, String hostPort, String hostContext, String host, int leaderVoteWait, int leaderConflictResolveWait, boolean genericCoreNodeNames)
public void registerInZk(SolrCore core, boolean background)
public SolrConfig getSolrConfigFromZk(String zkConfigName, String solrConfigFileName, SolrResourceLoader resourceLoader)
public ZkController getZkController()
public void close()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.