當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。