本文整理匯總了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);
}