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