@Path("{clusterName}/request_schedules")
  public RequestScheduleService getRequestScheduleService
                             (@Context jakarta.ws.rs.core.Request request, @PathParam ("clusterName") String clusterName) {
    return new RequestScheduleService(clusterName);
  }
Gets the request schedule service

@param request      the request
@param clusterName  the cluster name

@return  the request schedule service
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java