Source:
<code>public void testLaunchClusterWithMinDisk() throws RunNodesException { int numNodes = 1; final String name = "node"; ComputeServiceContext context = ContextBuilder.newBuilder("softlayer").credentials(identity, credential) .modules(ImmutableSet.of(new SLF4JLoggingModule(), new SshjSshClientModule())) .build(ComputeServiceContext.class); for(Image image : context.getComputeService().listImages()) { <START> System.out.println(image); <END> } for(Hardware hardware : context.getComputeService().listHardwareProfiles()) { System.out.println(hardware); } Image image = context.getComputeService().getImage("UBUNTU_8_64"); System.out.println(image); for(ComputeMetadata node : context.getComputeService().listNodes()) { System.out.println(node); } TemplateBuilder templateBuilder = context.getComputeService().templateBuilder(); templateBuilder.hardwareId("cpu=1,memory=4096,disk=100,type=SAN"); templateBuilder.imageId("7bcd78dc-eb11-4e1b-8d93-111c62ed5fd1"); templateBuilder.locationId("dal06"); Template template = templateBuilder.build(); template.getOptions().as(SoftLayerTemplateOptions.class).domainName("live.org"); Set<? extends NodeMetadata> nodes = context.getComputeService().createNodesInGroup(name, numNodes, template); assertEquals(numNodes, nodes.size(), "wrong number of nodes"); for (NodeMetadata node : nodes) { logger.debug("Created Node: %s", node); SshClient client = context.utils().sshForNode().apply(node); client.connect(); ExecResponse hello = client.exec("echo hello"); assertEquals(hello.getOutput().trim(), "hello"); context.getComputeService().destroyNode(node.getId()); } }</code><technical_language>in tests, loggers. Jclouds a TestNG output listener other pieces print standard output</technical_language>

Target:
public void testLaunchClusterWithMinDisk() throws RunNodesException { int numNodes = 1; final String name = "node"; ComputeServiceContext context = ContextBuilder.newBuilder("softlayer").credentials(identity, credential) .modules(ImmutableSet.of(new SLF4JLoggingModule(), new SshjSshClientModule())) .build(ComputeServiceContext.class); for (ComputeMetadata compute : context.getComputeService().listNodes()) { System.out.println(compute); } TemplateBuilder templateBuilder = context.getComputeService().templateBuilder(); templateBuilder.imageId("CENTOS_6_64"); Template template = templateBuilder.build(); SoftLayerTemplateOptions options = template.getOptions().as(SoftLayerTemplateOptions.class); options.domainName("live.org"); options.blockDevices(ImmutableSet.of(100)); options.tags(ImmutableList.of("jclouds")); Set<? extends NodeMetadata> nodes = context.getComputeService().createNodesInGroup(name, numNodes, template); assertEquals(numNodes, nodes.size(), "wrong number of nodes"); for (NodeMetadata node : nodes) { logger.debug("Created Node: %s", node); SshClient client = context.utils().sshForNode().apply(node); client.connect(); ExecResponse hello = client.exec("mount"); logger.debug(hello.getOutput().trim()); VirtualGuest virtualGuest = context.unwrapApi(SoftLayerApi.class).getVirtualGuestApi() .getVirtualGuest(Long.parseLong(node.getId())); for (VirtualGuestBlockDevice blockDevice : virtualGuest.getVirtualGuestBlockDevices()) { logger.debug(blockDevice.toString()); } context.getComputeService().destroyNode(node.getId()); } }