code: public List<SupervisorDetails> getSupervisorsByHost(String host) {
          List<String> nodeIds = this.hostToId.get(host);
          List<SupervisorDetails> ret = new ArrayList<>();
  
          if (nodeIds != null) {
              for (String nodeId : nodeIds) {
                  ret.add(this.getSupervisorById(nodeId));
              }
          }
  
          return ret;
      }
docs: Get all the supervisors on the specified <code>host</code>.
  
  @param host hostname of the supervisor
  @return the <code>SupervisorDetails</code> object.