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


Java RestStatus.writeTo方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVInt(id);
    out.writeString(description);
    out.writeVInt(levels.size());
    for (ClusterBlockLevel level : levels) {
        out.writeVInt(level.id());
    }
    out.writeBoolean(retryable);
    out.writeBoolean(disableStatePersistence);
    RestStatus.writeTo(out, status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:ClusterBlock.java

示例2: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalString(nodeId);
    shardId.writeTo(out);
    out.writeString(reason);
    RestStatus.writeTo(out, status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:SnapshotShardFailure.java

示例3: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (shardTarget == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        shardTarget.writeTo(out);
    }
    out.writeString(reason);
    RestStatus.writeTo(out, status);
    out.writeException(cause);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:ShardSearchFailure.java

示例4: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(nodeId);
    out.writeLong(taskId);
    out.writeException(reason);
    RestStatus.writeTo(out, status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:TaskOperationFailure.java

示例5: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    shardId.writeTo(out);
    out.writeOptionalString(nodeId);
    out.writeException(cause);
    RestStatus.writeTo(out, status);
    out.writeBoolean(primary);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:ReplicationResponse.java

示例6: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (index == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeString(index);
    }
    out.writeVInt(shardId);
    out.writeException(reason);
    RestStatus.writeTo(out, status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:DefaultShardOperationFailedException.java

示例7: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalString(nodeId);
    out.writeString(index);
    out.writeVInt(shardId);
    out.writeString(reason);
    RestStatus.writeTo(out, status);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:SnapshotShardFailure.java

示例8: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (shardTarget == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        shardTarget.writeTo(out);
    }
    out.writeString(reason);
    RestStatus.writeTo(out, status);
    out.writeThrowable(cause);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:13,代码来源:ShardSearchFailure.java

示例9: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(nodeId);
    out.writeLong(taskId);
    out.writeThrowable(reason);
    RestStatus.writeTo(out, status);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:TaskOperationFailure.java

示例10: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (index == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeString(index);
    }
    out.writeVInt(shardId);
    out.writeThrowable(reason);
    RestStatus.writeTo(out, status);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:13,代码来源:DefaultShardOperationFailedException.java

示例11: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(index);
    out.writeVInt(shardId);
    out.writeOptionalString(nodeId);
    out.writeThrowable(cause);
    RestStatus.writeTo(out, status);
    out.writeBoolean(primary);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:ActionWriteResponse.java

示例12: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    RestStatus.writeTo(out, status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:6,代码来源:ElasticsearchStatusException.java

示例13: writeTo

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(name);
    RestStatus.writeTo(out, status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:7,代码来源:NotSerializableExceptionWrapper.java


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