Package org.apache.ambari.server.controller

Examples of org.apache.ambari.server.controller.ActionRequest


      NoSuchResourceException, NoSuchParentResourceException {

    final Set<ActionRequest> requests = new HashSet<ActionRequest>();
    if (predicate != null) {
      for (Map<String, Object> propertyMap : getPropertyMaps(predicate)) {
        ActionRequest actionReq = getRequest(propertyMap);
        LOG.debug("Received a get request for Action with"
            + ", actionName = " + actionReq.getActionName());
        requests.add(actionReq);
      }
    } else {
      LOG.debug("Received a get request for all Actions");
      requests.add(ActionRequest.getAllRequest());
View Full Code Here


    if (!getEnableExperimental()) {
      throw new UnsupportedOperationException("Not currently supported.");
    }

    for (Map<String, Object> propertyMap : getPropertyMaps(predicate)) {
      final ActionRequest request = getRequest(propertyMap);
      try {
        LOG.info("Received a delete request for Action with"
            + ", actionName = " + request.getActionName());

        deleteActionDefinition(request);
      } catch (AmbariException ex) {
        throw new NoSuchResourceException(ex.getMessage());
      }
View Full Code Here

    notifyDelete(Type.Action, predicate);
    return getRequestStatus(null);
  }

  private ActionRequest getRequest(Map<String, Object> properties) {
    ActionRequest ar = new ActionRequest(
        (String) properties.get(ACTION_NAME_PROPERTY_ID),
        (String) properties.get(ACTION_TYPE_PROPERTY_ID),
        (String) properties.get(INPUTS_PROPERTY_ID),
        (String) properties.get(TARGET_SERVICE_PROPERTY_ID),
        (String) properties.get(TARGET_COMPONENT_PROPERTY_ID),
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.ActionRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.