Class NovaImageExtension

java.lang.Object
org.jclouds.openstack.nova.v2_0.compute.extensions.NovaImageExtension
All Implemented Interfaces:
ImageExtension

@Singleton public class NovaImageExtension extends Object implements ImageExtension
Nova implementation of ImageExtension
  • Field Details

    • logger

      @Named("jclouds.compute") protected Logger logger
  • Constructor Details

    • NovaImageExtension

      @Inject public NovaImageExtension(NovaApi novaApi, @Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, com.google.common.base.Supplier<Set<? extends Location>> locations, @Named("jclouds.compute.timeout.image-available") com.google.common.base.Predicate<AtomicReference<Image>> imageAvailablePredicate)
  • Method Details

    • 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 image
      id - 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: