@Override public void readFrom(StreamInput in) throws IOException { nodeId = in.readOptionalString(); cause = in.readException(); }
/** * Read from a stream. */ public StatusOrException(StreamInput in) throws IOException { if (in.readBoolean()) { status = new Status(in); exception = null; } else { status = null; exception = in.readException(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.readBoolean()) { reloadException = in.readException(); } }
/** * Executed for a received response error */ private void handlerResponseError(StreamInput stream, final TransportResponseHandler handler) { Exception error; try { error = stream.readException(); } catch (Exception e) { error = new TransportSerializationException("Failed to deserialize exception response from stream", e); } handleException(handler, error); }
/** * Read from a stream. */ public SimulateDocumentBaseResult(StreamInput in) throws IOException { if (in.readBoolean()) { ingestDocument = null; failure = in.readException(); } else { ingestDocument = new WriteableIngestDocument(in); failure = null; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); taskId = in.readString(); allocationId = in.readLong(); exception = in.readException(); }
@Override public void readFrom(StreamInput in) throws IOException { if (in.readBoolean()) { this.response = new SearchResponse(); response.readFrom(in); } else { exception = in.readException(); } }
/** * Read from a stream. */ SimulateProcessorResult(StreamInput in) throws IOException { this.processorTag = in.readString(); if (in.readBoolean()) { this.ingestDocument = new WriteableIngestDocument(in); } else { this.ingestDocument = null; } this.failure = in.readException(); }
/** * Read from a stream. */ public SearchFailure(StreamInput in) throws IOException { reason = in.readException(); index = in.readOptionalString(); shardId = in.readOptionalVInt(); nodeId = in.readOptionalString(); }
@Override public void readFrom(StreamInput in) throws IOException { index = in.readString(); type = in.readOptionalString(); id = in.readString(); exception = in.readException(); }
/** * Read from a stream. */ public TaskOperationFailure(StreamInput in) throws IOException { nodeId = in.readString(); taskId = in.readLong(); reason = in.readException(); status = RestStatus.readFrom(in); }
@Override public void readFrom(StreamInput in) throws IOException { index = in.readOptionalString(); shardId = in.readVInt(); cause = in.readException(); status = RestStatus.readFrom(in); }
@Override public void readFrom(StreamInput in) throws IOException { index = in.readString(); type = in.readOptionalString(); id = in.readString(); cause = in.readException(); }
public ShardStoreInfo(StreamInput in) throws IOException { this.inSync = in.readBoolean(); this.allocationId = in.readOptionalString(); this.matchingBytes = in.readLong(); this.storeException = in.readException(); }
public UnassignedInfo(StreamInput in) throws IOException { this.reason = Reason.values()[(int) in.readByte()]; this.unassignedTimeMillis = in.readLong(); // As System.nanoTime() cannot be compared across different JVMs, reset it to now. // This means that in master fail-over situations, elapsed delay time is forgotten. this.unassignedTimeNanos = System.nanoTime(); this.delayed = in.readBoolean(); this.message = in.readOptionalString(); this.failure = in.readException(); this.failedAllocations = in.readVInt(); this.lastAllocationStatus = AllocationStatus.readFrom(in); }
@Override public void readFrom(StreamInput in) throws IOException { shardId = ShardId.readShardId(in); super.shardId = shardId.getId(); index = shardId.getIndexName(); nodeId = in.readOptionalString(); cause = in.readException(); status = RestStatus.readFrom(in); primary = in.readBoolean(); }
@Override public void readFrom(StreamInput in) throws IOException { if (in.readBoolean()) { shardTarget = new SearchShardTarget(in); index = shardTarget.getFullyQualifiedIndexName(); shardId = shardTarget.getShardId().getId(); } reason = in.readString(); status = RestStatus.readFrom(in); cause = in.readException(); }
@Override public void readFrom(StreamInput in) throws IOException { node = new DiscoveryNode(in); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { // legacy version in.readLong(); } allocationId = in.readOptionalString(); allocationStatus = AllocationStatus.readFrom(in); if (in.readBoolean()) { storeException = in.readException(); } }
FailedShardEntry(StreamInput in) throws IOException { super(in); shardId = ShardId.readShardId(in); allocationId = in.readString(); primaryTerm = in.readVLong(); message = in.readString(); failure = in.readException(); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { markAsStale = in.readBoolean(); } else { markAsStale = true; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { // legacy version in.readLong(); } allocationId = in.readOptionalString(); primary = in.readBoolean(); if (in.readBoolean()) { storeException = in.readException(); } }