org.jclouds.ec2.compute.extensions
Class EC2ImageExtension

java.lang.Object
  extended by org.jclouds.ec2.compute.extensions.EC2ImageExtension
All Implemented Interfaces:
org.jclouds.compute.extensions.ImageExtension

public class EC2ImageExtension
extends Object
implements org.jclouds.compute.extensions.ImageExtension

EC2 implementation of ImageExtension please note that createImage(ImageTemplate) only works by cloning EBS backed instances for the moment.


Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
EC2ImageExtension(EC2Api ec2Api, com.google.common.util.concurrent.ListeningExecutorService userExecutor, com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations, com.google.common.base.Predicate<AtomicReference<org.jclouds.compute.domain.Image>> imageAvailablePredicate)
           
 
Method Summary
 org.jclouds.compute.domain.ImageTemplate buildImageTemplateFromNode(String name, String id)
           
 com.google.common.util.concurrent.ListenableFuture<org.jclouds.compute.domain.Image> createImage(org.jclouds.compute.domain.ImageTemplate template)
           
 boolean deleteImage(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
Constructor Detail

EC2ImageExtension

@Inject
public EC2ImageExtension(EC2Api ec2Api,
                                @Named(value="jclouds.user-threads")
                                com.google.common.util.concurrent.ListeningExecutorService userExecutor,
                                com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations,
                                @Named(value="jclouds.compute.timeout.image-available")
                                com.google.common.base.Predicate<AtomicReference<org.jclouds.compute.domain.Image>> imageAvailablePredicate)
Method Detail

buildImageTemplateFromNode

public org.jclouds.compute.domain.ImageTemplate buildImageTemplateFromNode(String name,
                                                                           String id)
Specified by:
buildImageTemplateFromNode in interface org.jclouds.compute.extensions.ImageExtension

createImage

public com.google.common.util.concurrent.ListenableFuture<org.jclouds.compute.domain.Image> createImage(org.jclouds.compute.domain.ImageTemplate template)
Specified by:
createImage in interface org.jclouds.compute.extensions.ImageExtension

deleteImage

public boolean deleteImage(String id)
Specified by:
deleteImage in interface org.jclouds.compute.extensions.ImageExtension


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.