gpt4 book ai didi

org.apache.solr.common.cloud.ZkNodeProps.load()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 06:09:31 26 4
gpt4 key购买 nike

本文整理了Java中org.apache.solr.common.cloud.ZkNodeProps.load()方法的一些代码示例,展示了ZkNodeProps.load()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZkNodeProps.load()方法的具体详情如下:
包路径:org.apache.solr.common.cloud.ZkNodeProps
类名称:ZkNodeProps
方法名:load

ZkNodeProps.load介绍

[英]Create Replica from json string that is typically stored in zookeeper.
[中]从通常存储在zookeeper中的json字符串创建副本。

代码示例

代码示例来源:origin: cloudera/search

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(ZkController.CONFIGNAME_PROP);

代码示例来源:origin: com.cloudera.search/search-mr

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(ZkController.CONFIGNAME_PROP);

代码示例来源:origin: kite-sdk/kite

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(ZkController.CONFIGNAME_PROP);

代码示例来源:origin: org.kitesdk/kite-morphlines-solr-core

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(ZkController.CONFIGNAME_PROP);

代码示例来源:origin: com.cloudera.cdk/cdk-morphlines-solr-core

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(ZkController.CONFIGNAME_PROP);

代码示例来源:origin: org.apache.solr/solr-morphlines-core

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(ZkController.CONFIGNAME_PROP);

代码示例来源:origin: com.hynnet/solr-solrj

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(CONFIGNAME_PROP);

代码示例来源:origin: org.apache.solr/solr-solrj

ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(CONFIGNAME_PROP);

代码示例来源:origin: org.apache.solr/solr-test-framework

@Override
public void distribSetUp() throws Exception {
 super.distribSetUp();
 // ignoreException(".*");
 if (sliceCount > 0) {
  System.setProperty("numShards", Integer.toString(sliceCount));
 } else {
  System.clearProperty("numShards");
 }
 if (isSSLMode()) {
  System.clearProperty("urlScheme");
  try (ZkStateReader zkStateReader = new ZkStateReader(zkServer.getZkAddress(),
    AbstractZkTestCase.TIMEOUT, AbstractZkTestCase.TIMEOUT)) {
   try {
    zkStateReader.getZkClient().create(ZkStateReader.CLUSTER_PROPS,
      Utils.toJSON(Collections.singletonMap("urlScheme", "https")),
      CreateMode.PERSISTENT, true);
   } catch (KeeperException.NodeExistsException e) {
    ZkNodeProps props = ZkNodeProps.load(zkStateReader.getZkClient().getData(ZkStateReader.CLUSTER_PROPS,
      null, null, true));
    zkStateReader.getZkClient().setData(ZkStateReader.CLUSTER_PROPS, Utils.toJSON(props.plus("urlScheme", "https")), true);
   }
  }
 }
 if (useTlogReplicas()) {
  log.info("Will use {} replicas unless explicitly asked otherwise", Replica.Type.TLOG);
 } else {
  log.info("Will use {} replicas unless explicitly asked otherwise", Replica.Type.NRT);
 }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com