@GET
  @Produces(MediaType.APPLICATION_JSON)
  @Path("/rmCurrentConfig")
  public Response getRmSchedulerConfig() {
    try {
      String url = String.format(RM_GET_SCHEDULER_CONFIG, getRMUrl());

      InputStream rmResponse = context.getURLStreamProvider().readFrom(
          url, "GET", (String) null, new HashMap<String, String>());
      String result = IOUtils.toString(rmResponse);
      return Response.ok(result).build();
    } catch (ConnectException ex) {
      throw new ServiceFormattedException("Connection to Resource Manager refused", ex);
    } catch (WebApplicationException ex) {
      throw ex;
    } catch (Exception ex) {
      throw new ServiceFormattedException(ex.getMessage(), ex);
    }
  }
Gets scheduler info from RM

@return scheduler info
contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java