Package org.apache.ambari.server.controller.internal

Examples of org.apache.ambari.server.controller.internal.ClusterControllerImpl


  public static synchronized ClusterController getClusterController() {
    if (controller == null) {
      try {
        Class<?> implClass = Class.forName(PROVIDER_MODULE_CLASS);
        ProviderModule providerModule = ViewProviderModule.getViewProviderModule((ProviderModule) implClass.newInstance());
        controller = new ClusterControllerImpl(providerModule);

      } catch (Exception e) {
        throw new IllegalStateException("Can't create provider module " + PROVIDER_MODULE_CLASS, e);
      }
    }
View Full Code Here


    Assert.assertNotNull(hostNode.getObject().getPropertyValue("c1/p3"));
  }

  public static class TestQuery extends QueryImpl {
    public TestQuery(Map<Resource.Type, String> mapIds, ResourceDefinition resourceDefinition) {
      super(mapIds, resourceDefinition, new ClusterControllerImpl(new ClusterControllerImplTest.TestProviderModule()));
      setRenderer(new DefaultRenderer());
    }
View Full Code Here

    Assert.assertNotNull(hostNode.getObject().getPropertyValue("c1/p3"));
  }

  public static class TestQuery extends QueryImpl {
    public TestQuery(Map<Resource.Type, String> mapIds, ResourceDefinition resourceDefinition) {
      super(mapIds, resourceDefinition, new ClusterControllerImpl(new ClusterControllerImplTest.TestProviderModule()));
      setRenderer(new DefaultRenderer());
    }
View Full Code Here

  public static synchronized ClusterController getClusterController() {
    if (controller == null) {
      try {
        Class<?> implClass = Class.forName(PROVIDER_MODULE_CLASS);
        ProviderModule providerModule = (ProviderModule) implClass.newInstance();
        controller = new ClusterControllerImpl(providerModule);

      } catch (Exception e) {
        throw new IllegalStateException("Can't create provider module " + PROVIDER_MODULE_CLASS, e);
      }
    }
View Full Code Here

    Assert.assertNotNull(hostNode.getObject().getPropertyValue("c1/p3"));
  }

  public static class TestQuery extends QueryImpl {
    public TestQuery(Map<Resource.Type, String> mapIds, ResourceDefinition resourceDefinition) {
      super(mapIds, resourceDefinition, new ClusterControllerImpl(new ClusterControllerImplTest.TestProviderModule()));
    }
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.internal.ClusterControllerImpl

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.