org.jclouds.ec2.compute.extensions
Class EC2ImageExtension
java.lang.Object
org.jclouds.ec2.compute.extensions.EC2ImageExtension
- All Implemented Interfaces:
- ImageExtension
public class EC2ImageExtension
- extends Object
- implements ImageExtension
EC2 implementation of ImageExtension please note that createImage(ImageTemplate)
only works by cloning EBS backed instances for the moment.
- Author:
- David Alves
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected Logger logger
EC2ImageExtension
@Inject
public EC2ImageExtension(EC2Client ec2Client,
@Named(value="jclouds.user-threads")
ExecutorService userThreads,
PredicateWithResult<String,Image> imageReadyPredicate)
buildImageTemplateFromNode
public ImageTemplate buildImageTemplateFromNode(String name,
String id)
- Description copied from interface:
ImageExtension
- Build an ImageTemplate from a running node, to use later to create a new
Image.
- Specified by:
buildImageTemplateFromNode in interface ImageExtension
- 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
public com.google.common.util.concurrent.ListenableFuture<Image> createImage(ImageTemplate template)
- Description copied from interface:
ImageExtension
- Transform the
ImageTemplate on an Image that can be used to create nodes.
- Specified by:
createImage in interface ImageExtension
- Parameters:
template - template to base the new image on
- Returns:
- the image that was just built *after* it is registered on the provider
deleteImage
public boolean deleteImage(String id)
- Description copied from interface:
ImageExtension
- Delete an
Image on the provider.
- Specified by:
deleteImage in interface ImageExtension
- Parameters:
id - the id of the image to delete
- Returns:
Copyright © 2009-2012 jclouds. All Rights Reserved.