Examples of toBlueprint()


Examples of com.vmware.bdd.apitypes.ClusterCreate.toBlueprint()

      NodeGroupCreate master = new NodeGroupCreate();
      master.setRoles(Arrays.asList("hadoop_namenode",
      "hadoop_jobtracker"));
      cluster.setNodeGroups(new NodeGroupCreate[] { client, worker, master });
      assertEquals(3, cluster.getNodeGroups().length);
      ClusterBlueprint blueprint = cluster.toBlueprint();
      defaultSoftwareManager.updateInfrastructure(blueprint);
      assertEquals(master.getName(), blueprint.getNodeGroups().get(0).getName());
      assertEquals(worker.getName(), blueprint.getNodeGroups().get(1).getName());
      assertEquals(client.getName(), blueprint.getNodeGroups().get(2).getName());
   }
View Full Code Here

Examples of com.vmware.bdd.apitypes.ClusterCreate.toBlueprint()

         TestFileUtil
         .getSimpleClusterSpec(TestFileUtil.HDFS_HA_CLUSTER_FILE);
      cluster.setDistro("bigtop");
      List<String> failedMsgList = new ArrayList<String>();
      List<String> warningMsgList = new ArrayList<String>();
      validator.validateGroupConfig(cluster.toBlueprint(), failedMsgList, warningMsgList);
      assertTrue("Should get empty fail message.", failedMsgList.isEmpty());
      assertTrue("Should get empty warning message.", warningMsgList.isEmpty());
   }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.