code: public EventRecord[] monitor() {
      ArrayList<EventRecord> recs = new ArrayList<EventRecord>();
  
      for (String device : devices) {
        try {
          recs.add(query(device));
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
  
      EventRecord[] T = new EventRecord[recs.size()];
  
      return recs.toArray(T);
    }
docs: Invokes query() to do the parsing and handles parsing errors for
  each one of the disks specified in the configuration.
  
  @return an array of EventRecords that holds one element that represents
  the current state of the disk devices.