class ClusterFacade {

  public static CompactionStats parseCompactionStats(String json) throws IOException {
    try {
      return parseJson(json, new TypeReference<CompactionStats>(){});
    } catch (IOException e) {
      // it can be that the storage had old format of compaction info, so we try to parse that
      List<Compaction> compactions = parseJson(json, new TypeReference<List<Compaction>>() {});
      return CompactionStats.builder()
          .withPendingCompactions(-1)
          .withActiveCompactions(compactions)
          .build();
    }
  }

  private  ClusterFacade(AppContext context);

}