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


Java RestStatus.readFrom方法代码示例

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


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

示例1: readFrom

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    id = in.readVInt();
    description = in.readString();
    final int len = in.readVInt();
    ArrayList<ClusterBlockLevel> levels = new ArrayList<>();
    for (int i = 0; i < len; i++) {
        levels.add(ClusterBlockLevel.fromId(in.readVInt()));
    }
    this.levels = EnumSet.copyOf(levels);
    retryable = in.readBoolean();
    disableStatePersistence = in.readBoolean();
    status = RestStatus.readFrom(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:15,代码来源:ClusterBlock.java

示例2: readFrom

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

示例3: readFrom

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        shardTarget = new SearchShardTarget(in);
    }
    reason = in.readString();
    status = RestStatus.readFrom(in);
    cause = in.readException();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:ShardSearchFailure.java

示例4: TaskOperationFailure

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public TaskOperationFailure(StreamInput in) throws IOException {
    nodeId = in.readString();
    taskId = in.readLong();
    reason = in.readException();
    status = RestStatus.readFrom(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:TaskOperationFailure.java

示例5: readFrom

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    shardId = ShardId.readShardId(in);
    nodeId = in.readOptionalString();
    cause = in.readException();
    status = RestStatus.readFrom(in);
    primary = in.readBoolean();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:ReplicationResponse.java

示例6: readFrom

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        index = in.readString();
    }
    shardId = in.readVInt();
    reason = in.readException();
    status = RestStatus.readFrom(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:DefaultShardOperationFailedException.java

示例7: readFrom

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

示例8: readFrom

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        shardTarget = readSearchShardTarget(in);
    }
    reason = in.readString();
    status = RestStatus.readFrom(in);
    cause = in.readThrowable();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:ShardSearchFailure.java

示例9: readFrom

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        index = in.readString();
    }
    shardId = in.readVInt();
    reason = in.readThrowable();
    status = RestStatus.readFrom(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:DefaultShardOperationFailedException.java

示例10: readFrom

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    index = in.readString();
    shardId = in.readVInt();
    nodeId = in.readOptionalString();
    cause = in.readThrowable();
    status = RestStatus.readFrom(in);
    primary = in.readBoolean();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:ActionWriteResponse.java

示例11: ElasticsearchStatusException

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public ElasticsearchStatusException(StreamInput in) throws IOException {
    super(in);
    status = RestStatus.readFrom(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:ElasticsearchStatusException.java

示例12: NotSerializableExceptionWrapper

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

示例13: ElasticsearchSecurityException

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
public ElasticsearchSecurityException(StreamInput in) throws IOException {
    super(in);
    status = RestStatus.readFrom(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:5,代码来源:ElasticsearchSecurityException.java

示例14: TaskOperationFailure

import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
public TaskOperationFailure(StreamInput in) throws IOException {
    nodeId = in.readString();
    taskId = in.readLong();
    reason = in.readThrowable();
    status = RestStatus.readFrom(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:7,代码来源:TaskOperationFailure.java


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