code: public void generateCapacityReport(GetWorkerReportOptions options) throws IOException {
      List<WorkerInfo> workerInfoList = mBlockMasterClient.getWorkerReport(options);
      if (workerInfoList.size() == 0) {
        print("No workers found.");
        return;
      }
      Collections.sort(workerInfoList, new WorkerInfo.LastContactSecComparator());
  
      collectWorkerInfo(workerInfoList);
      printAggregatedInfo(options);
      printWorkerInfo(workerInfoList);
    }
docs: Generates capacity report.
  
  @param options GetWorkerReportOptions to get worker report