@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); dn = in.readString(); isAdmin = in.readBoolean(); isAuthenticated = in.readBoolean(); isNodeCertificateRequest = in.readBoolean(); }
/** * Get a reader that can create a new instance of the class from a {@link org.elasticsearch.common.io.stream.StreamInput} */ public Writeable.Reader<Response> getResponseReader() { return in -> { Response response = newResponse(); response.readFrom(in); return response; }; }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); this.cae = new ClusterAllocationExplanation(in); }
protected Response read(StreamInput in) throws IOException { Response response = newResponse(); response.readFrom(in); return response; }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); task = in.readOptionalWriteable(PersistentTask::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); getResult = GetResult.readGetResult(in); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); acknowledged = in.readBoolean(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); task = in.readOptionalWriteable(TaskResult::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); restoreInfo = RestoreInfo.readOptionalRestoreInfo(in); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); snapshotInfo = in.readOptionalWriteable(SnapshotInfo::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); exists = in.readBoolean(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); int size = in.readVInt(); List<SnapshotInfo> builder = new ArrayList<>(size); for (int i = 0; i < size; i++) { builder.add(new SnapshotInfo(in)); } snapshots = Collections.unmodifiableList(builder); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); int size = in.readVInt(); indexTemplates.clear(); for (int i = 0 ; i < size ; i++) { indexTemplates.add(0, IndexTemplateMetaData.readFrom(in)); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = new ClusterName(in); node = in.readOptionalWriteable(DiscoveryNode::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); int size = in.readVInt(); pendingTasks = new ArrayList<>(size); for (int i = 0; i < size; i++) { PendingClusterTask task = new PendingClusterTask(); task.readFrom(in); pendingTasks.add(task); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { this.nodes = in.readList(NodeView::new).stream().map(n -> n.convertToDiscoveryNode()).collect(Collectors.toList()); } else { clusterName = new ClusterName(in); this.nodes = in.readList(DiscoveryNode::new); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = new ClusterName(in); nodes = readNodesFrom(in); failures = in.readList(FailedNodeException::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); responses = new BulkItemResponse[in.readVInt()]; for (int i = 0; i < responses.length; i++) { responses[i] = BulkItemResponse.readBulkItem(in); } tookInMillis = in.readVLong(); ingestTookInMillis = in.readZLong(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); nodeName = in.readString(); version = Version.readVersion(in); clusterName = new ClusterName(in); clusterUuid = in.readString(); build = Build.readBuild(in); available = in.readBoolean(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = in.readString(); clusterHealthStatus = ClusterHealthStatus.fromValue(in.readByte()); clusterStateHealth = new ClusterStateHealth(in); numberOfPendingTasks = in.readInt(); timedOut = in.readBoolean(); numberOfInFlightFetch = in.readInt(); delayedUnassignedShards= in.readInt(); taskMaxWaitingTime = in.readTimeValue(); }