Exemplo n.º 1
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(nodes.length);
   for (NodeInfo node : nodes) {
     node.writeTo(out);
   }
 }
Exemplo n.º 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);
   }
 }
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(nodes.length);
   for (NodeSnapshotStatus response : nodes) {
     response.writeTo(out);
   }
 }
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(nodes.length);
   for (NodeStoreFilesMetaData response : nodes) {
     response.writeTo(out);
   }
 }
 @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);
   }
 }
 @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);
   }
 }
Exemplo n.º 7
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeVInt(failureCount);
 }
Exemplo n.º 8
0
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   failureCount = in.readVInt();
 }