Java Code Examples for org.elasticsearch.rest.RestStatus#readFrom()
The following examples show how to use
org.elasticsearch.rest.RestStatus#readFrom() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClusterBlock.java From Elasticsearch with Apache License 2.0 | 5 votes |
@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); }
Example 2
Source File: SnapshotShardFailure.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { nodeId = in.readOptionalString(); index = in.readString(); shardId = in.readVInt(); reason = in.readString(); status = RestStatus.readFrom(in); }
Example 3
Source File: ShardSearchFailure.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { if (in.readBoolean()) { shardTarget = readSearchShardTarget(in); } reason = in.readString(); status = RestStatus.readFrom(in); cause = in.readThrowable(); }
Example 4
Source File: DefaultShardOperationFailedException.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { if (in.readBoolean()) { index = in.readString(); } shardId = in.readVInt(); reason = in.readThrowable(); status = RestStatus.readFrom(in); }
Example 5
Source File: ActionWriteResponse.java From Elasticsearch with Apache License 2.0 | 5 votes |
@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(); }
Example 6
Source File: ClusterBlock.java From crate with Apache License 2.0 | 5 votes |
public ClusterBlock(StreamInput in) throws IOException { id = in.readVInt(); uuid = in.readOptionalString(); description = in.readString(); final int len = in.readVInt(); ArrayList<ClusterBlockLevel> levels = new ArrayList<>(len); for (int i = 0; i < len; i++) { levels.add(in.readEnum(ClusterBlockLevel.class)); } this.levels = EnumSet.copyOf(levels); retryable = in.readBoolean(); disableStatePersistence = in.readBoolean(); status = RestStatus.readFrom(in); allowReleaseResources = in.readBoolean(); }
Example 7
Source File: SnapshotShardFailure.java From crate with Apache License 2.0 | 5 votes |
public SnapshotShardFailure(StreamInput in) throws IOException { nodeId = in.readOptionalString(); shardId = new ShardId(in); super.shardId = shardId.getId(); index = shardId.getIndexName(); reason = in.readString(); status = RestStatus.readFrom(in); }
Example 8
Source File: ReplicationResponse.java From crate with Apache License 2.0 | 5 votes |
public Failure(StreamInput in) throws IOException { shardId = new ShardId(in); super.shardId = shardId.getId(); index = shardId.getIndexName(); nodeId = in.readOptionalString(); cause = in.readException(); status = RestStatus.readFrom(in); primary = in.readBoolean(); }
Example 9
Source File: NotSerializableExceptionWrapper.java From Elasticsearch with Apache License 2.0 | 4 votes |
public NotSerializableExceptionWrapper(StreamInput in) throws IOException { super(in); name = in.readString(); status = RestStatus.readFrom(in); }
Example 10
Source File: ElasticsearchSecurityException.java From Elasticsearch with Apache License 2.0 | 4 votes |
public ElasticsearchSecurityException(StreamInput in) throws IOException { super(in); status = RestStatus.readFrom(in); }
Example 11
Source File: TaskOperationFailure.java From Elasticsearch with Apache License 2.0 | 4 votes |
public TaskOperationFailure(StreamInput in) throws IOException { nodeId = in.readString(); taskId = in.readLong(); reason = in.readThrowable(); status = RestStatus.readFrom(in); }
Example 12
Source File: ElasticsearchStatusException.java From crate with Apache License 2.0 | 4 votes |
/** * Read from a stream. */ public ElasticsearchStatusException(StreamInput in) throws IOException { super(in); status = RestStatus.readFrom(in); }
Example 13
Source File: NotSerializableExceptionWrapper.java From crate with Apache License 2.0 | 4 votes |
public NotSerializableExceptionWrapper(StreamInput in) throws IOException { super(in); name = in.readString(); status = RestStatus.readFrom(in); }
Example 14
Source File: DefaultShardOperationFailedException.java From crate with Apache License 2.0 | 4 votes |
public DefaultShardOperationFailedException(StreamInput in) throws IOException { index = in.readOptionalString(); shardId = in.readVInt(); cause = in.readException(); status = RestStatus.readFrom(in); }