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


Java Settings.writeSettingsToStream方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeVInt(version.id);
    Build.writeBuild(build, out);
    if (totalIndexingBuffer == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeLong(totalIndexingBuffer.getBytes());
    }
    if (settings == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        Settings.writeSettingsToStream(settings, out);
    }
    out.writeOptionalWriteable(os);
    out.writeOptionalWriteable(process);
    out.writeOptionalWriteable(jvm);
    out.writeOptionalWriteable(threadPool);
    out.writeOptionalWriteable(transport);
    out.writeOptionalWriteable(http);
    out.writeOptionalWriteable(plugins);
    out.writeOptionalWriteable(ingest);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:27,代码来源:NodeInfo.java

示例2: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(index);
    out.writeInt(routingNumShards);
    out.writeLong(version);
    out.writeByte(state.id);
    Settings.writeSettingsToStream(settings, out);
    out.writeVLongArray(primaryTerms);
    mappings.writeTo(out);
    aliases.writeTo(out);
    customs.writeTo(out);
    inSyncAllocationIds.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:14,代码来源:IndexMetaData.java

示例3: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(clusterUUID);
    out.writeLong(version);
    Settings.writeSettingsToStream(transientSettings, out);
    Settings.writeSettingsToStream(persistentSettings, out);
    indices.writeTo(out);
    templates.writeTo(out);
    customs.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:MetaData.java

示例4: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalString(name);
    boolean isNotNullDefinition = this.definition != null;
    out.writeBoolean(isNotNullDefinition);
    if (isNotNullDefinition) {
        Settings.writeSettingsToStream(definition, out);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:AnalyzeRequest.java

示例5: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeVInt(indexToSettings.size());
    for (ObjectObjectCursor<String, Settings> cursor : indexToSettings) {
        out.writeString(cursor.key);
        Settings.writeSettingsToStream(cursor.value, out);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:GetSettingsResponse.java

示例6: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeVInt(repositories.size());
    for (RepositoryMetaData repository : repositories) {
        out.writeString(repository.name());
        out.writeString(repository.type());
        Settings.writeSettingsToStream(repository.settings(), out);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:GetRepositoriesResponse.java

示例7: writeTo

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

示例8: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(index);
    out.writeLong(version);
    out.writeByte(state.id);
    out.writeLong(tenantId);
    Settings.writeSettingsToStream(settings, out);
    mappings.writeTo(out);
    aliases.writeTo(out);
    customs.writeTo(out);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:12,代码来源:IndexMetaData.java

示例9: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(clusterUUID);
    out.writeLong(version);
    Settings.writeSettingsToStream(transientSettings, out);
    Settings.writeSettingsToStream(persistentSettings, out);
    indices.writeTo(out);
    templates.writeTo(out);
    userMetadataDiff.writeTo(out);
    tenantMetadataDiff.writeTo(out);
    customs.writeTo(out);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:13,代码来源:MetaData.java

示例10: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
/**
 * Writes repository metadata to stream output
 *
 * @param out stream output
 */
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(name);
    out.writeString(type);
    Settings.writeSettingsToStream(settings, out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:RepositoryMetaData.java

示例11: writeTo

import org.elasticsearch.common.settings.Settings; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeVInt(version.id);
    Build.writeBuild(build, out);
    if (getServiceAttributes() == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeVInt(serviceAttributes.size());
        for (Map.Entry<String, String> entry : serviceAttributes.entrySet()) {
            out.writeString(entry.getKey());
            out.writeString(entry.getValue());
        }
    }
    if (settings == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        Settings.writeSettingsToStream(settings, out);
    }
    if (os == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        os.writeTo(out);
    }
    if (process == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        process.writeTo(out);
    }
    if (jvm == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        jvm.writeTo(out);
    }
    if (threadPool == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        threadPool.writeTo(out);
    }
    if (transport == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        transport.writeTo(out);
    }
    if (http == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        http.writeTo(out);
    }
    if (plugins == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        plugins.writeTo(out);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:65,代码来源:NodeInfo.java


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