public class VirtualBoxComputeServiceAdapter extends Object implements ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>
VirtualBoxManager implementation
and the jclouds ComputeServiceComputeServiceAdapter.NodeAndInitialCredentials<N>| Constructor and Description |
|---|
VirtualBoxComputeServiceAdapter(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager,
com.google.common.base.Supplier<Map<Image,YamlImage>> imagesMapper,
com.google.common.cache.LoadingCache<Image,Master> mastersLoader,
com.google.common.base.Function<NodeSpec,ComputeServiceAdapter.NodeAndInitialCredentials<org.virtualbox_4_1.IMachine>> cloneCreator,
com.google.common.base.Function<org.virtualbox_4_1.IMachine,Image> imachineToImage) |
| Modifier and Type | Method and Description |
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<org.virtualbox_4_1.IMachine> |
createNodeWithGroupEncodedIntoName(String tag,
String name,
Template template)
ComputeService.createNodesInGroup(String, int, Template) generates the parameters
passed into this method such that each node in the set has a unique name. |
void |
destroyNode(String vmName) |
Image |
getImage(String vmName)
get a specific image by id
|
org.virtualbox_4_1.IMachine |
getNode(String vmName) |
Iterable<Hardware> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<Image> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Location> |
listLocations() |
Iterable<org.virtualbox_4_1.IMachine> |
listNodes() |
void |
rebootNode(String vmName) |
void |
resumeNode(String vmName) |
void |
suspendNode(String vmName) |
@Named(value="jclouds.compute") protected Logger logger
@Inject
public VirtualBoxComputeServiceAdapter(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager,
com.google.common.base.Supplier<Map<Image,YamlImage>> imagesMapper,
com.google.common.cache.LoadingCache<Image,Master> mastersLoader,
com.google.common.base.Function<NodeSpec,ComputeServiceAdapter.NodeAndInitialCredentials<org.virtualbox_4_1.IMachine>> cloneCreator,
com.google.common.base.Function<org.virtualbox_4_1.IMachine,Image> imachineToImage)
public ComputeServiceAdapter.NodeAndInitialCredentials<org.virtualbox_4_1.IMachine> createNodeWithGroupEncodedIntoName(String tag, String name, Template template)
ComputeServiceAdapterComputeService.createNodesInGroup(String, int, Template) generates the parameters
passed into this method such that each node in the set has a unique name.
N. If you are not using library-native objects (such as libvirt Domain) use
JCloudsNativeComputeServiceAdapter instead.
credentialStorecreateNodeWithGroupEncodedIntoName in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>tag - used to aggregate nodes with identical configurationname - unique supplied name for the node, which has the group encoded into it.template - includes imageId, locationId, and hardwareId used to resume
the instance.ComputeService.createNodesInGroup(String, int, Template)public Iterable<org.virtualbox_4_1.IMachine> listNodes()
listNodes in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>public Iterable<Hardware> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>ComputeService.listHardwareProfiles()public Iterable<Image> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>ComputeService.listImages()public Iterable<Location> listLocations()
listLocations in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>public org.virtualbox_4_1.IMachine getNode(String vmName)
getNode in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>public Image getImage(String vmName)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>vmName - ComputeMetadata.getId(), which is not necessarily ComputeMetadata.getProviderId()public void destroyNode(String vmName)
destroyNode in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>public void rebootNode(String vmName)
rebootNode in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>public void resumeNode(String vmName)
resumeNode in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>public void suspendNode(String vmName)
suspendNode in interface ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location>Copyright © 2009-2013 jclouds. All Rights Reserved.