org.elasticsearch.cluster.metadata.MetaData.getCustoms()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(114)

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

MetaData.getCustoms介绍

暂无

代码示例

代码示例来源:origin: org.elasticsearch/elasticsearch

if (applyPluginUpgraders(metaData.getCustoms(), metaDataUpgrader.customMetaDataUpgraders,
  upgradedMetaData::removeCustom,upgradedMetaData::putCustom)) {
  changed = true;

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

metaData.getIndices(),
metaData.getTemplates(),
metaData.getCustoms(),
metaData.getConcreteAllIndices(),
metaData.getConcreteAllOpenIndices(),

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

if (applyPluginUpgraders(metaData.getCustoms(), metaDataUpgrader.customMetaDataUpgraders,
  upgradedMetaData::removeCustom,upgradedMetaData::putCustom)) {
  changed = true;

代码示例来源:origin: apache/servicemix-bundles

if (applyPluginUpgraders(metaData.getCustoms(), metaDataUpgrader.customMetaDataUpgraders,
  upgradedMetaData::removeCustom,upgradedMetaData::putCustom)) {
  changed = true;

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

if (applyPluginUpgraders(metaData.getCustoms(), metaDataUpgrader.customMetaDataUpgraders,
  upgradedMetaData::removeCustom,upgradedMetaData::putCustom)) {
  changed = true;

代码示例来源:origin: io.fabric8.insight/insight-elasticsearch

return;
RepositoriesMetaData repositoriesMetaData = (RepositoriesMetaData) state.getState().getMetaData().getCustoms().get("repositories");
logger.info("Storing indices " + toStore);
for (String repository : repositories) {

代码示例来源:origin: harbby/presto-connectors

/** As of 2.0 we require units for time and byte-sized settings. This methods adds default units to any
 * persistent settings and template settings that don't specify a unit.
 **/
public static MetaData addDefaultUnitsIfNeeded(ESLogger logger, MetaData metaData) {
  Settings newPersistentSettings = addDefaultUnitsIfNeeded(
      CLUSTER_TIME_SETTINGS, CLUSTER_BYTES_SIZE_SETTINGS, logger, metaData.persistentSettings());
  ImmutableOpenMap<String, IndexTemplateMetaData> templates = updateTemplates(logger, metaData.getTemplates());
  if (newPersistentSettings != null || templates != null) {
    return new MetaData(
        metaData.clusterUUID(),
        metaData.version(),
        metaData.transientSettings(),
        MoreObjects.firstNonNull(newPersistentSettings, metaData.persistentSettings()),
        metaData.getIndices(),
        MoreObjects.firstNonNull(templates, metaData.getTemplates()),
        metaData.getCustoms(),
        metaData.concreteAllIndices(),
        metaData.concreteAllOpenIndices(),
        metaData.concreteAllClosedIndices(),
        metaData.getAliasAndIndexLookup());
  } else {
    // No changes:
    return metaData;
  }
}

相关文章