default Set<Container> getContainersByStatus(Container.ContainerStatus containerStatus) {
    Set<Container> selectedContainers = new HashSet<>();
    for (Account account : getAllAccounts()) {
      for (Container container : account.getAllContainers()) {
        if (container.getStatus().equals(containerStatus)) {
          selectedContainers.add(container);
        }
      }
    }
    return selectedContainers;
  }
Gets a collection of {@link Container}s in the given status.
ambry-api/src/main/java/com/github/ambry/account/AccountService.java