|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.virtualbox.compute.extensions.VirtualBoxImageExtension
@Singleton public class VirtualBoxImageExtension
Virtualbox implementation of ImageExtension
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@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)
| Method Detail |
|---|
public ImageTemplate buildImageTemplateFromNode(String name,
String id)
ImageExtensionImage.
buildImageTemplateFromNode in interface ImageExtensionname - name to give the new imageid - node to base the template on
public 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 on
public boolean deleteImage(String id)
ImageExtensionImage on the provider.
deleteImage in interface ImageExtensionid - the id of the image to delete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||