protected BatchRequestResponse performUriRequest(String url, String body, String method) {
    Response response;
    try {
      WebTarget target = ClientBuilder.newClient().target(url);
      Invocation.Builder invocationBuilder = target.request();

      if (method.equalsIgnoreCase("GET")) {
        response = invocationBuilder.get();
      } else if (method.equalsIgnoreCase("POST")) {
        response = invocationBuilder.post(Entity.entity(body, MediaType.APPLICATION_JSON));
      } else if (method.equalsIgnoreCase("PUT")) {
        response = invocationBuilder.put(Entity.entity(body, MediaType.APPLICATION_JSON));
      } else if (method.equalsIgnoreCase("DELETE")) {
        response = invocationBuilder.delete();
      } else {
        throw new IllegalArgumentException("Invalid HTTP method: " + method);
      }

    } catch (Exception e) {
      response = null;
    }

    return convertToBatchRequestResponse(response);
  }
Get status of a long running operation
@return
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/scheduler/ExecutionScheduleManager.java