public Set<DistributedMember> getAllNormalMembers() {
    return ManagementUtils.getAllNormalMembers(cache);
  }
Get All members, excluding locators

@return a set of all non-locator members
geode-gfsh/src/main/java/org/apache/geode/management/cli/GfshCommand.java