@Override
  public Set<Role> getAllRoles() {
    Set<Role> allRoles = new HashSet<>();
    Set<InternalDistributedMember> mbrs = getDistributionManagerIds();
    for (InternalDistributedMember mbr : mbrs) {
      allRoles.addAll(mbr.getRoles());
    }
    return allRoles;
  }
Returns a set of all roles currently in the distributed system.
geode-core/src/main/java/org/apache/geode/distributed/internal/ClusterDistributionManager.java