コード例 #1
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(nodes.length);
   for (NodeInfo node : nodes) {
     node.writeTo(out);
   }
 }
コード例 #2
0
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   nodes = new NodeInfo[in.readVInt()];
   for (int i = 0; i < nodes.length; i++) {
     nodes[i] = NodeInfo.readNodeInfo(in);
   }
 }
コード例 #3
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(nodes.length);
   for (NodeSnapshotStatus response : nodes) {
     response.writeTo(out);
   }
 }
コード例 #4
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(nodes.length);
   for (NodeStoreFilesMetaData response : nodes) {
     response.writeTo(out);
   }
 }
コード例 #5
0
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   nodes = new NodeStoreFilesMetaData[in.readVInt()];
   for (int i = 0; i < nodes.length; i++) {
     nodes[i] = NodeStoreFilesMetaData.readListShardStoreNodeOperationResponse(in);
   }
 }
コード例 #6
0
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   nodes = new NodeSnapshotStatus[in.readVInt()];
   for (int i = 0; i < nodes.length; i++) {
     nodes[i] = new NodeSnapshotStatus();
     nodes[i].readFrom(in);
   }
 }
コード例 #7
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(failureCount);
 }
コード例 #8
0
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   failureCount = in.readVInt();
 }