@Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   nodes = new NodeStats[in.readVInt()];
   for (int i = 0; i < nodes.length; i++) {
     nodes[i] = NodeStats.readNodeStats(in);
   }
 }
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   timestamp = in.readVLong();
   status = null;
   if (in.readBoolean()) {
     // it may be that the master switched on us while doing the operation. In this case the status
     // may be null.
     status = ClusterHealthStatus.fromValue(in.readByte());
   }
   clusterUUID = in.readString();
   nodesStats = ClusterStatsNodes.readNodeStats(in);
   indicesStats = ClusterStatsIndices.readIndicesStats(in);
 }