org.jclouds.karaf.commands.compute
Class ComputeHelper

java.lang.Object
  extended by org.jclouds.karaf.commands.compute.ComputeHelper

public class ComputeHelper
extends Object


Field Summary
static String HARDWAREFORMAT
           
static String IMAGEFORMAT
           
static String LOCATIONFORMAT
           
static String NODEFORMAT
           
 
Constructor Summary
ComputeHelper()
           
 
Method Summary
static Set<? extends org.jclouds.domain.Location> getAllLocations(Set<? extends org.jclouds.domain.Location> locations)
           
static org.jclouds.compute.ComputeService getComputeService(String provider, List<org.jclouds.compute.ComputeService> services)
           
static double getCpuCores(org.jclouds.compute.domain.Hardware hardware)
           
static double getCpuUnits(org.jclouds.compute.domain.Hardware hardware)
           
static double getMemory(org.jclouds.compute.domain.Hardware hardware)
           
static void printHardwares(Set<? extends org.jclouds.compute.domain.Hardware> hardwares, String indent, PrintStream out)
           
static void printImages(Set<? extends org.jclouds.compute.domain.Image> images, String indent, PrintStream out)
           
static void printLocations(Set<? extends org.jclouds.domain.Location> locations, org.jclouds.domain.Location parent, String indent, PrintStream out)
           
static void printLocations(Set<? extends org.jclouds.domain.Location> locations, String indent, PrintStream out)
           
static void printNodes(Set<? extends org.jclouds.compute.domain.ComputeMetadata> nodes, String indent, PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODEFORMAT

public static final String NODEFORMAT
See Also:
Constant Field Values

HARDWAREFORMAT

public static final String HARDWAREFORMAT
See Also:
Constant Field Values

IMAGEFORMAT

public static final String IMAGEFORMAT
See Also:
Constant Field Values

LOCATIONFORMAT

public static final String LOCATIONFORMAT
See Also:
Constant Field Values
Constructor Detail

ComputeHelper

public ComputeHelper()
Method Detail

getComputeService

public static org.jclouds.compute.ComputeService getComputeService(String provider,
                                                                   List<org.jclouds.compute.ComputeService> services)

printNodes

public static void printNodes(Set<? extends org.jclouds.compute.domain.ComputeMetadata> nodes,
                              String indent,
                              PrintStream out)

printHardwares

public static void printHardwares(Set<? extends org.jclouds.compute.domain.Hardware> hardwares,
                                  String indent,
                                  PrintStream out)

printImages

public static void printImages(Set<? extends org.jclouds.compute.domain.Image> images,
                               String indent,
                               PrintStream out)

printLocations

public static void printLocations(Set<? extends org.jclouds.domain.Location> locations,
                                  String indent,
                                  PrintStream out)

printLocations

public static void printLocations(Set<? extends org.jclouds.domain.Location> locations,
                                  org.jclouds.domain.Location parent,
                                  String indent,
                                  PrintStream out)

getAllLocations

public static Set<? extends org.jclouds.domain.Location> getAllLocations(Set<? extends org.jclouds.domain.Location> locations)

getMemory

public static double getMemory(org.jclouds.compute.domain.Hardware hardware)

getCpuCores

public static double getCpuCores(org.jclouds.compute.domain.Hardware hardware)

getCpuUnits

public static double getCpuUnits(org.jclouds.compute.domain.Hardware hardware)


Copyright © 2009-2011 jclouds. All Rights Reserved.