当前位置: 首页>>代码示例>>Java>>正文


Java Settings.readSettingsFromStream方法代码示例

本文整理汇总了Java中org.elasticsearch.common.settings.Settings.readSettingsFromStream方法的典型用法代码示例。如果您正苦于以下问题:Java Settings.readSettingsFromStream方法的具体用法?Java Settings.readSettingsFromStream怎么用?Java Settings.readSettingsFromStream使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.elasticsearch.common.settings.Settings的用法示例。


在下文中一共展示了Settings.readSettingsFromStream方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readFrom

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    version = Version.readVersion(in);
    build = Build.readBuild(in);
    if (in.readBoolean()) {
        totalIndexingBuffer = new ByteSizeValue(in.readLong());
    } else {
        totalIndexingBuffer = null;
    }
    if (in.readBoolean()) {
        settings = Settings.readSettingsFromStream(in);
    }
    os = in.readOptionalWriteable(OsInfo::new);
    process = in.readOptionalWriteable(ProcessInfo::new);
    jvm = in.readOptionalWriteable(JvmInfo::new);
    threadPool = in.readOptionalWriteable(ThreadPoolInfo::new);
    transport = in.readOptionalWriteable(TransportInfo::new);
    http = in.readOptionalWriteable(HttpInfo::new);
    plugins = in.readOptionalWriteable(PluginsAndModules::new);
    ingest = in.readOptionalWriteable(IngestInfo::new);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:23,代码来源:NodeInfo.java

示例2: MetaDataDiff

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
MetaDataDiff(StreamInput in) throws IOException {
    clusterUUID = in.readString();
    version = in.readLong();
    transientSettings = Settings.readSettingsFromStream(in);
    persistentSettings = Settings.readSettingsFromStream(in);
    indices = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), IndexMetaData::readFrom,
        IndexMetaData::readDiffFrom);
    templates = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), IndexTemplateMetaData::readFrom,
        IndexTemplateMetaData::readDiffFrom);
    customs = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), CUSTOM_VALUE_SERIALIZER);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:MetaData.java

示例3: NameOrDefinition

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
NameOrDefinition(StreamInput in) throws IOException {
    name = in.readOptionalString();
    if (in.readBoolean()) {
        definition = Settings.readSettingsFromStream(in);
    } else {
        definition = null;
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:AnalyzeRequest.java

示例4: readFrom

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    transientSettings = Settings.readSettingsFromStream(in);
    persistentSettings = Settings.readSettingsFromStream(in);
    readAcknowledged(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:ClusterUpdateSettingsResponse.java

示例5: readFrom

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
/**
 * Reads repository metadata from stream input
 *
 * @param in stream input
 * @return repository metadata
 */
public static RepositoryMetaData readFrom(StreamInput in) throws IOException {
    String name = in.readString();
    String type = in.readString();
    Settings settings = Settings.readSettingsFromStream(in);
    return new RepositoryMetaData(name, type, settings);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:13,代码来源:RepositoryMetaData.java

示例6: readFrom

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    version = Version.readVersion(in);
    build = Build.readBuild(in);
    if (in.readBoolean()) {
        ImmutableMap.Builder<String, String> builder = ImmutableMap.builder();
        int size = in.readVInt();
        for (int i = 0; i < size; i++) {
            builder.put(in.readString(), in.readString());
        }
        serviceAttributes = builder.build();
    }
    if (in.readBoolean()) {
        settings = Settings.readSettingsFromStream(in);
    }
    if (in.readBoolean()) {
        os = OsInfo.readOsInfo(in);
    }
    if (in.readBoolean()) {
        process = ProcessInfo.readProcessInfo(in);
    }
    if (in.readBoolean()) {
        jvm = JvmInfo.readJvmInfo(in);
    }
    if (in.readBoolean()) {
        threadPool = ThreadPoolInfo.readThreadPoolInfo(in);
    }
    if (in.readBoolean()) {
        transport = TransportInfo.readTransportInfo(in);
    }
    if (in.readBoolean()) {
        http = HttpInfo.readHttpInfo(in);
    }
    if (in.readBoolean()) {
        plugins = new PluginsAndModules();
        plugins.readFrom(in);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:40,代码来源:NodeInfo.java

示例7: RepositoryMetaData

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
public RepositoryMetaData(StreamInput in) throws IOException {
    name = in.readString();
    type = in.readString();
    settings = Settings.readSettingsFromStream(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:6,代码来源:RepositoryMetaData.java


注:本文中的org.elasticsearch.common.settings.Settings.readSettingsFromStream方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。