@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); nodes = new WebsocketInfo[in.readVInt()]; for (int i = 0; i < nodes.length; i++) { nodes[i] = WebsocketInfo.readInfo(in); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(nodes.length); for (WebsocketInfo node : nodes) { node.writeTo(out); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); nodes = new CacheStatsPerFieldStats[in.readVInt()]; for (int i = 0; i < nodes.length; i++) { nodes[i] = CacheStatsPerFieldStats.readCachePerFieldStats(in); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(nodes.length); for (T node : nodes) { node.writeTo(out); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); int responsesCount = in.readInt(); this.responses = new ArrayList<NodeImportResponse>(responsesCount); for (int i = 0; i < responsesCount; i++) { responses.add(NodeImportResponse.readNew(in)); } int failuresCount = in.readInt(); this.nodeFailures = new ArrayList<FailedNodeException>(failuresCount); for (int i = 0; i < failuresCount; i++) { String nodeId = in.readString(); String msg = in.readOptionalString(); FailedNodeException e = new FailedNodeException(nodeId, msg, null); nodeFailures.add(e); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(nodes.length); for (CacheStatsPerFieldStats node : nodes) { node.writeTo(out); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); nodes = newNodeResponsesArray(in.readVInt()); for (int i = 0; i < nodes.length; i++) { T node = newNodeResponse(); node.readFrom(in); nodes[i] = node; } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeInt(responses.size()); for (NodeImportResponse response : responses) { response.writeTo(out); } out.writeInt(nodeFailures.size()); for (FailedNodeException e : nodeFailures) { out.writeString(e.nodeId()); out.writeOptionalString(e.getMessage()); } } }