本文整理汇总了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);
}
示例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);
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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();
}
示例11: ElasticsearchStatusException
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
/**
* Read from a stream.
*/
public ElasticsearchStatusException(StreamInput in) throws IOException {
super(in);
status = RestStatus.readFrom(in);
}
示例12: NotSerializableExceptionWrapper
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
public NotSerializableExceptionWrapper(StreamInput in) throws IOException {
super(in);
name = in.readString();
status = RestStatus.readFrom(in);
}
示例13: ElasticsearchSecurityException
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
public ElasticsearchSecurityException(StreamInput in) throws IOException {
super(in);
status = RestStatus.readFrom(in);
}
示例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);
}