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

Examples of org.apache.ambari.server.controller.internal.ClusterResourceProvider.HostGroup


      Collections.singletonMap("storm.zookeeper.servers", "['localhost']");

    final Map<String, String> mProperty =
      Collections.singletonMap("namenode_heapsize", "1025");

    final HostGroup hostGroup1 = createNiceMock(HostGroup.class);
    final HostGroup hostGroup2 = createNiceMock(HostGroup.class);

    expect(hostGroup1.getComponents()).andReturn(new ArrayList<String>() {{
      add("NAMENODE");
      add("HBASE_MASTER");
      add("HIVE_SERVER");
      add("ZOOKEEPER_SERVER");
    }}).anyTimes();
    expect(hostGroup1.getHostInfo()).andReturn(Collections.singletonList("h1")).anyTimes();

    expect(hostGroup2.getComponents()).andReturn(Collections.singletonList("ZOOKEEPER_SERVER")).anyTimes();
    expect(hostGroup2.getHostInfo()).andReturn(Collections.singletonList("h2")).anyTimes();

    Map<String, HostGroup> hostGroups = new
      HashMap<String, HostGroup>() {{
        put("host_group_1", hostGroup1);
        put("host_group_2", hostGroup2);
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.internal.ClusterResourceProvider.HostGroup

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.