Package org.apache.ambari.server.controller

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


                             String serviceName, State desiredState) throws AmbariException {
    String dStateStr = null;
    if (desiredState != null) {
      dStateStr = desiredState.toString();
    }
    ServiceRequest r1 = new ServiceRequest(clusterName, serviceName, dStateStr);
    Set<ServiceRequest> requests = new HashSet<ServiceRequest>();
    requests.add(r1);
    ServiceResourceProviderTest.createServices(controller, requests);
  }
View Full Code Here


    private final ServiceRequest serviceRequest;

    public ServiceRequestSetMatcher(
        String clusterName, String serviceName, Map<String, String> configVersions, String desiredState) {
      this.serviceRequest = new ServiceRequest(clusterName, serviceName, configVersions, desiredState);
      add(this.serviceRequest);
    }
View Full Code Here

    private final ServiceRequest serviceRequest;

    public ServiceRequestSetMatcher(
        String clusterName, String serviceName, Map<String, String> configVersions, String desiredState) {
      this.serviceRequest = new ServiceRequest(clusterName, serviceName, configVersions, desiredState);
      add(this.serviceRequest);
    }
View Full Code Here

   * @param properties  the predicate
   *
   * @return the service request object
   */
  private ServiceRequest getRequest(Map<String, Object> properties) {
    ServiceRequest svcRequest = new ServiceRequest(
        (String) properties.get(SERVICE_CLUSTER_NAME_PROPERTY_ID),
        (String) properties.get(SERVICE_SERVICE_NAME_PROPERTY_ID),
        (String) properties.get(SERVICE_SERVICE_STATE_PROPERTY_ID));
   
    Object o = properties.get(SERVICE_MAINTENANCE_STATE_PROPERTY_ID);
    if (null != o)
      svcRequest.setMaintenanceState(o.toString());

    return svcRequest;
  }
View Full Code Here

                             String serviceName, State desiredState) throws AmbariException {
    String dStateStr = null;
    if (desiredState != null) {
      dStateStr = desiredState.toString();
    }
    ServiceRequest r1 = new ServiceRequest(clusterName, serviceName, dStateStr);
    Set<ServiceRequest> requests = new HashSet<ServiceRequest>();
    requests.add(r1);
    ServiceResourceProviderTest.createServices(controller, requests);
  }
View Full Code Here

TOP

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

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.