@Singleton public class VirtualBoxImageExtension extends Object implements ImageExtension
ImageExtension| Constructor and Description |
|---|
VirtualBoxImageExtension(ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location> vboxAdapter,
com.google.common.base.Function<org.virtualbox_4_1.IMachine,NodeMetadata> machineToNode,
com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager,
String workingDir,
com.google.common.base.Function<org.virtualbox_4_1.IMachine,Image> imachineToImage,
MachineUtils machineUtils) |
| Modifier and Type | Method and Description |
|---|---|
ImageTemplate |
buildImageTemplateFromNode(String name,
String id)
Build an ImageTemplate from a running node, to use later to create a new
Image. |
com.google.common.util.concurrent.ListenableFuture<Image> |
createImage(ImageTemplate template)
Transform the
ImageTemplate on an Image that can be used to create nodes. |
boolean |
deleteImage(String id)
Delete an
Image on the provider. |
@Inject public VirtualBoxImageExtension(ComputeServiceAdapter<org.virtualbox_4_1.IMachine,Hardware,Image,Location> vboxAdapter, com.google.common.base.Function<org.virtualbox_4_1.IMachine,NodeMetadata> machineToNode, com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager, @Named(value="jclouds.virtualbox.workingdir") String workingDir, com.google.common.base.Function<org.virtualbox_4_1.IMachine,Image> imachineToImage, MachineUtils machineUtils)
public ImageTemplate buildImageTemplateFromNode(String name, String id)
ImageExtensionImage.buildImageTemplateFromNode in interface ImageExtensionname - name to give the new imageid - node to base the template onpublic com.google.common.util.concurrent.ListenableFuture<Image> createImage(ImageTemplate template)
ImageExtensionImageTemplate on an Image that can be used to create nodes.createImage in interface ImageExtensiontemplate - template to base the new image onpublic boolean deleteImage(String id)
ImageExtensionImage on the provider.deleteImage in interface ImageExtensionid - the id of the image to deleteCopyright © 2009-2013 jclouds. All Rights Reserved.