Package org.jclouds.compute.extensions
Interface ImageExtension
-
- All Known Implementing Classes:
AzureComputeImageExtension
,CloudStackImageExtension
,DelegatingImageExtension
,DigitalOcean2ImageExtension
,EC2ImageExtension
,NovaImageExtension
public interface ImageExtension
An extension to compute service to allow for the manipulation ofImage
s. Implementation is optional by providers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImageTemplate
buildImageTemplateFromNode(String name, String id)
Build an ImageTemplate from a running node, to use later to create a newImage
.com.google.common.util.concurrent.ListenableFuture<Image>
createImage(ImageTemplate template)
Transform theImageTemplate
on anImage
that can be used to create nodes.boolean
deleteImage(String id)
Delete anImage
on the provider.
-
-
-
Method Detail
-
buildImageTemplateFromNode
ImageTemplate buildImageTemplateFromNode(String name, String id)
Build an ImageTemplate from a running node, to use later to create a newImage
.- Parameters:
name
- name to give the new imageid
- node to base the template on- Returns:
- an image template that can be used to create a new image
-
createImage
com.google.common.util.concurrent.ListenableFuture<Image> createImage(ImageTemplate template)
Transform theImageTemplate
on anImage
that can be used to create nodes.- Parameters:
template
- template to base the new image on- Returns:
- the image that was just built *after* it is registered on the provider
-
-