code: public Map<String, SchedulerAssignment> getAssignments() {
          Map<String, SchedulerAssignment> ret = new HashMap<>(this.assignments.size());
  
          for (String topologyId : this.assignments.keySet()) {
              ret.put(topologyId, this.assignments.get(topologyId));
          }
  
          return ret;
      }
docs: Get all the assignments.