@Override
  public ObjectNode execute(final HttpServletRequest request) throws Exception {

    // get cluster object
    Cluster cluster = repository.getCluster();

    // json object to be sent as response
    ObjectNode responseJSON = mapper.createObjectNode();

    // members list
    ArrayNode connectedClusterListJson = mapper.createArrayNode();

    for (Map.Entry<String, Boolean> entry : cluster.getWanInformation().entrySet()) {
      ObjectNode clusterJSON = mapper.createObjectNode();
      clusterJSON.put("clusterId", entry.getKey());
      clusterJSON.put("name", entry.getKey());
      clusterJSON.put("status", entry.getValue());

      connectedClusterListJson.add(clusterJSON);
    }
    // Response JSON
    responseJSON.set("connectedClusters", connectedClusterListJson);
    // Send json response
    return responseJSON;
  }
Class ClusterWANInfoService

This class contains implementations of getting Cluster's WAN Information (connected clusters)

@since GemFire version 7.5
geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/service/ClusterWANInfoService.java