org.dasein.cloud.google.compute.server
Class ImageSupport

java.lang.Object
  extended by org.dasein.cloud.compute.AbstractImageSupport
      extended by org.dasein.cloud.google.compute.server.ImageSupport
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.MachineImageSupport

public class ImageSupport
extends org.dasein.cloud.compute.AbstractImageSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.compute.MachineImageSupport
ANY, DOWNLOAD_IMAGE, GET_IMAGE, IMAGE_VM, LIST_IMAGE, MAKE_PUBLIC, REGISTER_IMAGE, REMOVE_IMAGE, SHARE_IMAGE, UPLOAD_IMAGE
 
Constructor Summary
ImageSupport(Google provider)
           
 
Method Summary
 void addImageShare(String providerImageId, String accountNumber)
           
 void addPublicShare(String providerImageId)
           
 String bundleVirtualMachine(String virtualMachineId, org.dasein.cloud.compute.MachineImageFormat format, String bucket, String name)
           
 void bundleVirtualMachineAsync(String virtualMachineId, org.dasein.cloud.compute.MachineImageFormat format, String bucket, String name, org.dasein.cloud.AsynchronousTask<String> trackingTask)
           
 GCEImageCapabilities getCapabilities()
           
 org.dasein.cloud.compute.MachineImage getImage(String providerImageId)
           
 String getProviderTermForCustomImage(Locale locale, org.dasein.cloud.compute.ImageClass cls)
           
 String getProviderTermForImage(Locale locale)
           
 String getProviderTermForImage(Locale locale, org.dasein.cloud.compute.ImageClass cls)
           
 boolean hasPublicLibrary()
           
 boolean isImageSharedWithPublic(String providerImageId)
           
 boolean isSubscribed()
           
 Iterable<org.dasein.cloud.compute.MachineImage> listImages(org.dasein.cloud.compute.ImageFilterOptions options)
           
 Iterable<org.dasein.cloud.ResourceStatus> listImageStatus(org.dasein.cloud.compute.ImageClass cls)
           
 Iterable<org.dasein.cloud.compute.MachineImage> listMachineImages()
           
 Iterable<org.dasein.cloud.compute.MachineImage> listMachineImagesOwnedBy(String accountId)
           
 Iterable<String> listShares(String providerImageId)
           
 org.dasein.cloud.compute.MachineImage registerImageBundle(org.dasein.cloud.compute.ImageCreateOptions options)
           
 void remove(String providerImageId)
           
 void remove(String providerImageId, boolean checkState)
           
 void removeAllImageShares(String providerImageId)
           
 void removeImageShare(String providerImageId, String accountNumber)
           
 void removePublicShare(String providerImageId)
           
 void removeTags(String[] imageIds, org.dasein.cloud.Tag... tags)
           
 void removeTags(String imageId, org.dasein.cloud.Tag... tags)
           
 Iterable<org.dasein.cloud.compute.MachineImage> searchImages(String accountNumber, String keyword, org.dasein.cloud.compute.Platform platform, org.dasein.cloud.compute.Architecture architecture, org.dasein.cloud.compute.ImageClass... imageClasses)
           
 Iterable<org.dasein.cloud.compute.MachineImage> searchPublicImages(org.dasein.cloud.compute.ImageFilterOptions options)
           
 void updateTags(String[] imageIds, org.dasein.cloud.Tag... tags)
           
 void updateTags(String imageId, org.dasein.cloud.Tag... tags)
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractImageSupport
capture, captureImage, captureImageAsync, getContext, getMachineImage, getProvider, identifyLocalBundlingRequirement, imageVirtualMachine, listImages, listImages, listSupportedFormats, listSupportedFormatsForBundling, listSupportedImageClasses, listSupportedImageTypes, mapServiceAction, matches, searchMachineImages, searchPublicImages, shareMachineImage, supportsCustomImages, supportsDirectImageUpload, supportsImageCapture, supportsImageSharing, supportsImageSharingWithPublic, supportsPublicLibrary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSupport

public ImageSupport(Google provider)
Method Detail

addImageShare

public void addImageShare(@Nonnull
                          String providerImageId,
                          @Nonnull
                          String accountNumber)
                   throws org.dasein.cloud.CloudException,
                          org.dasein.cloud.InternalException
Specified by:
addImageShare in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
addImageShare in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

addPublicShare

public void addPublicShare(@Nonnull
                           String providerImageId)
                    throws org.dasein.cloud.CloudException,
                           org.dasein.cloud.InternalException
Specified by:
addPublicShare in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
addPublicShare in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

bundleVirtualMachine

@Nonnull
public String bundleVirtualMachine(@Nonnull
                                           String virtualMachineId,
                                           @Nonnull
                                           org.dasein.cloud.compute.MachineImageFormat format,
                                           @Nonnull
                                           String bucket,
                                           @Nonnull
                                           String name)
                            throws org.dasein.cloud.CloudException,
                                   org.dasein.cloud.InternalException
Specified by:
bundleVirtualMachine in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
bundleVirtualMachine in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

bundleVirtualMachineAsync

public void bundleVirtualMachineAsync(@Nonnull
                                      String virtualMachineId,
                                      @Nonnull
                                      org.dasein.cloud.compute.MachineImageFormat format,
                                      @Nonnull
                                      String bucket,
                                      @Nonnull
                                      String name,
                                      org.dasein.cloud.AsynchronousTask<String> trackingTask)
                               throws org.dasein.cloud.CloudException,
                                      org.dasein.cloud.InternalException
Specified by:
bundleVirtualMachineAsync in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
bundleVirtualMachineAsync in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getCapabilities

@Nonnull
public GCEImageCapabilities getCapabilities()

getImage

public org.dasein.cloud.compute.MachineImage getImage(@Nonnull
                                                      String providerImageId)
                                               throws org.dasein.cloud.CloudException,
                                                      org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getProviderTermForImage

@Nonnull
public String getProviderTermForImage(@Nonnull
                                              Locale locale)
Specified by:
getProviderTermForImage in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
getProviderTermForImage in class org.dasein.cloud.compute.AbstractImageSupport

getProviderTermForImage

@Nonnull
public String getProviderTermForImage(@Nonnull
                                              Locale locale,
                                              @Nonnull
                                              org.dasein.cloud.compute.ImageClass cls)
Specified by:
getProviderTermForImage in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
getProviderTermForImage in class org.dasein.cloud.compute.AbstractImageSupport

getProviderTermForCustomImage

@Nonnull
public String getProviderTermForCustomImage(@Nonnull
                                                    Locale locale,
                                                    @Nonnull
                                                    org.dasein.cloud.compute.ImageClass cls)
Specified by:
getProviderTermForCustomImage in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
getProviderTermForCustomImage in class org.dasein.cloud.compute.AbstractImageSupport

hasPublicLibrary

public boolean hasPublicLibrary()
Specified by:
hasPublicLibrary in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
hasPublicLibrary in class org.dasein.cloud.compute.AbstractImageSupport

isImageSharedWithPublic

public boolean isImageSharedWithPublic(@Nonnull
                                       String providerImageId)
                                throws org.dasein.cloud.CloudException,
                                       org.dasein.cloud.InternalException
Specified by:
isImageSharedWithPublic in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
isImageSharedWithPublic in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listImageStatus

@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listImageStatus(@Nonnull
                                                                         org.dasein.cloud.compute.ImageClass cls)
                                                          throws org.dasein.cloud.CloudException,
                                                                 org.dasein.cloud.InternalException
Specified by:
listImageStatus in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
listImageStatus in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listImages

@Nonnull
public Iterable<org.dasein.cloud.compute.MachineImage> listImages(org.dasein.cloud.compute.ImageFilterOptions options)
                                                           throws org.dasein.cloud.CloudException,
                                                                  org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listMachineImages

@Nonnull
public Iterable<org.dasein.cloud.compute.MachineImage> listMachineImages()
                                                                  throws org.dasein.cloud.CloudException,
                                                                         org.dasein.cloud.InternalException
Specified by:
listMachineImages in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
listMachineImages in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listMachineImagesOwnedBy

@Nonnull
public Iterable<org.dasein.cloud.compute.MachineImage> listMachineImagesOwnedBy(String accountId)
                                                                         throws org.dasein.cloud.CloudException,
                                                                                org.dasein.cloud.InternalException
Specified by:
listMachineImagesOwnedBy in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
listMachineImagesOwnedBy in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listShares

@Nonnull
public Iterable<String> listShares(@Nonnull
                                           String providerImageId)
                            throws org.dasein.cloud.CloudException,
                                   org.dasein.cloud.InternalException
Specified by:
listShares in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
listShares in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

registerImageBundle

@Nonnull
public org.dasein.cloud.compute.MachineImage registerImageBundle(@Nonnull
                                                                         org.dasein.cloud.compute.ImageCreateOptions options)
                                                          throws org.dasein.cloud.CloudException,
                                                                 org.dasein.cloud.InternalException
Specified by:
registerImageBundle in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
registerImageBundle in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

remove

public void remove(@Nonnull
                   String providerImageId)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Specified by:
remove in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
remove in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

remove

public void remove(@Nonnull
                   String providerImageId,
                   boolean checkState)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeAllImageShares

public void removeAllImageShares(@Nonnull
                                 String providerImageId)
                          throws org.dasein.cloud.CloudException,
                                 org.dasein.cloud.InternalException
Specified by:
removeAllImageShares in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
removeAllImageShares in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeImageShare

public void removeImageShare(@Nonnull
                             String providerImageId,
                             @Nonnull
                             String accountNumber)
                      throws org.dasein.cloud.CloudException,
                             org.dasein.cloud.InternalException
Specified by:
removeImageShare in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
removeImageShare in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removePublicShare

public void removePublicShare(@Nonnull
                              String providerImageId)
                       throws org.dasein.cloud.CloudException,
                              org.dasein.cloud.InternalException
Specified by:
removePublicShare in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
removePublicShare in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

searchImages

@Nonnull
public Iterable<org.dasein.cloud.compute.MachineImage> searchImages(String accountNumber,
                                                                            String keyword,
                                                                            org.dasein.cloud.compute.Platform platform,
                                                                            org.dasein.cloud.compute.Architecture architecture,
                                                                            org.dasein.cloud.compute.ImageClass... imageClasses)
                                                             throws org.dasein.cloud.CloudException,
                                                                    org.dasein.cloud.InternalException
Specified by:
searchImages in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
searchImages in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

searchPublicImages

@Nonnull
public Iterable<org.dasein.cloud.compute.MachineImage> searchPublicImages(@Nonnull
                                                                                  org.dasein.cloud.compute.ImageFilterOptions options)
                                                                   throws org.dasein.cloud.InternalException,
                                                                          org.dasein.cloud.CloudException
Specified by:
searchPublicImages in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
searchPublicImages in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

updateTags

public void updateTags(@Nonnull
                       String imageId,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
updateTags in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateTags

public void updateTags(@Nonnull
                       String[] imageIds,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
updateTags in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeTags

public void removeTags(@Nonnull
                       String imageId,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
removeTags in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeTags

public void removeTags(@Nonnull
                       String[] imageIds,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.compute.MachineImageSupport
Overrides:
removeTags in class org.dasein.cloud.compute.AbstractImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2014 Dell, Inc. All Rights Reserved.