@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(nodeId); out.writeException(cause); }
@Override public void writeTo(StreamOutput out) throws IOException { if (response != null) { out.writeBoolean(true); response.writeTo(out); } else { out.writeBoolean(false); out.writeException(exception); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(index); out.writeVInt(shardId); out.writeException(cause); RestStatus.writeTo(out, status); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(nodeId); out.writeLong(taskId); out.writeException(reason); RestStatus.writeTo(out, status); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (reloadException != null) { out.writeBoolean(true); out.writeException(reloadException); } else { out.writeBoolean(false); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeOptionalString(type); out.writeString(id); out.writeException(exception); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeBoolean(inSync); out.writeOptionalString(allocationId); out.writeLong(matchingBytes); out.writeException(storeException); }
@Override public void writeTo(StreamOutput out) throws IOException { if (failure == null) { out.writeBoolean(false); ingestDocument.writeTo(out); } else { out.writeBoolean(true); out.writeException(failure); } }
@Override public void writeTo(StreamOutput out) throws IOException { if (exception == null) { out.writeBoolean(true); status.writeTo(out); } else { out.writeBoolean(false); out.writeException(exception); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeException(reason); out.writeOptionalString(index); out.writeOptionalVInt(shardId); out.writeOptionalString(nodeId); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeOptionalString(type); out.writeString(id); out.writeException(cause); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(taskId); out.writeLong(allocationId); out.writeException(exception); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(this.getMessage()); out.writeException(this.getCause()); writeStackTraces(this, out); if (out.getVersion().onOrAfter(Version.V_5_3_0)) { out.writeMapOfLists(headers, StreamOutput::writeString, StreamOutput::writeString); out.writeMapOfLists(metadata, StreamOutput::writeString, StreamOutput::writeString); } else { Map<String, List<String>> finalHeaders = new HashMap<>(headers.size() + metadata.size()); finalHeaders.putAll(headers); finalHeaders.putAll(metadata); out.writeMapOfLists(finalHeaders, StreamOutput::writeString, StreamOutput::writeString); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(processorTag); if (ingestDocument == null) { out.writeBoolean(false); } else { out.writeBoolean(true); ingestDocument.writeTo(out); } out.writeException(failure); }
@Override public void writeTo(StreamOutput out) throws IOException { shardId.writeTo(out); out.writeOptionalString(nodeId); out.writeException(cause); RestStatus.writeTo(out, status); out.writeBoolean(primary); }
@Override public void writeTo(StreamOutput out) throws IOException { if (shardTarget == null) { out.writeBoolean(false); } else { out.writeBoolean(true); shardTarget.writeTo(out); } out.writeString(reason); RestStatus.writeTo(out, status); out.writeException(cause); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); shardId.writeTo(out); out.writeString(allocationId); out.writeVLong(primaryTerm); out.writeString(message); out.writeException(failure); if (out.getVersion().onOrAfter(Version.V_6_3_0)) { out.writeBoolean(markAsStale); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); shardId.writeTo(out); out.writeString(allocationId); if (out.getVersion().before(Version.V_6_3_0)) { out.writeVLong(0L); } out.writeString(message); if (out.getVersion().before(Version.V_6_3_0)) { out.writeException(null); } }
public void writeTo(StreamOutput out) throws IOException { if (out.getVersion().before(Version.V_6_0_0_beta2) && reason == Reason.MANUAL_ALLOCATION) { out.writeByte((byte) Reason.ALLOCATION_FAILED.ordinal()); } else { out.writeByte((byte) reason.ordinal()); } out.writeLong(unassignedTimeMillis); // Do not serialize unassignedTimeNanos as System.nanoTime() cannot be compared across different JVMs out.writeBoolean(delayed); out.writeOptionalString(message); out.writeException(failure); out.writeVInt(failedAllocations); lastAllocationStatus.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(getIndex()); out.writeString(getType()); out.writeOptionalString(getId()); out.writeException(getCause()); if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) { out.writeZLong(getSeqNo()); } if (supportsAbortedFlag(out.getVersion())) { out.writeBoolean(aborted); } }