org.dasein.cloud.vsphere.compute
Class Template

java.lang.Object
  extended by org.dasein.cloud.compute.AbstractImageSupport
      extended by org.dasein.cloud.vsphere.compute.Template
All Implemented Interfaces:
AccessControlledService, MachineImageSupport

public class Template
extends 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
 
Method Summary
protected  MachineImage capture(ImageCreateOptions options, AsynchronousTask<MachineImage> task)
           
 MachineImage getImage(String providerImageId)
           
 String getProviderTermForImage(Locale locale, ImageClass cls)
           
 boolean hasPublicLibrary()
           
 Requirement identifyLocalBundlingRequirement()
           
 boolean isImageSharedWithPublic(String machineImageId)
           
 boolean isSubscribed()
           
 Iterable<MachineImage> listImages(ImageFilterOptions options)
           
 Iterable<ResourceStatus> listImageStatus(ImageClass cls)
           
 Iterable<MachineImageFormat> listSupportedFormats()
           
 Iterable<MachineImageFormat> listSupportedFormatsForBundling()
           
 Iterable<ImageClass> listSupportedImageClasses()
           
 Iterable<MachineImageType> listSupportedImageTypes()
           
 String[] mapServiceAction(ServiceAction action)
           
 void remove(String providerImageId, boolean checkState)
           
 Iterable<MachineImage> searchMachineImages(String keyword, Platform platform, Architecture architecture)
           
 Iterable<MachineImage> searchPublicImages(String keyword, Platform platform, Architecture architecture, ImageClass... imageClasses)
           
 boolean supportsCustomImages()
           
 boolean supportsDirectImageUpload()
           
 boolean supportsImageCapture(MachineImageType type)
           
 boolean supportsImageSharing()
           
 boolean supportsImageSharingWithPublic()
           
 boolean supportsPublicLibrary(ImageClass cls)
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractImageSupport
addImageShare, addPublicShare, bundleVirtualMachine, bundleVirtualMachineAsync, captureImage, captureImageAsync, getContext, getMachineImage, getProvider, getProviderTermForCustomImage, getProviderTermForImage, imageVirtualMachine, listImages, listImages, listMachineImages, listMachineImagesOwnedBy, listShares, matches, registerImageBundle, remove, removeAllImageShares, removeImageShare, removePublicShare, removeTags, removeTags, searchImages, searchPublicImages, shareMachineImage, updateTags, updateTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

remove

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

getImage

public MachineImage getImage(@Nonnull
                             String providerImageId)
                      throws CloudException,
                             InternalException
Throws:
CloudException
InternalException

getProviderTermForImage

@Nonnull
public String getProviderTermForImage(@Nonnull
                                              Locale locale,
                                              @Nonnull
                                              ImageClass cls)

listSupportedImageClasses

@Nonnull
public Iterable<ImageClass> listSupportedImageClasses()
                                               throws CloudException,
                                                      InternalException
Specified by:
listSupportedImageClasses in interface MachineImageSupport
Overrides:
listSupportedImageClasses in class AbstractImageSupport
Throws:
CloudException
InternalException

listSupportedImageTypes

@Nonnull
public Iterable<MachineImageType> listSupportedImageTypes()
                                                   throws CloudException,
                                                          InternalException
Specified by:
listSupportedImageTypes in interface MachineImageSupport
Overrides:
listSupportedImageTypes in class AbstractImageSupport
Throws:
CloudException
InternalException

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         ServiceAction action)
Specified by:
mapServiceAction in interface AccessControlledService
Overrides:
mapServiceAction in class AbstractImageSupport

hasPublicLibrary

public boolean hasPublicLibrary()
Specified by:
hasPublicLibrary in interface MachineImageSupport
Overrides:
hasPublicLibrary in class AbstractImageSupport

identifyLocalBundlingRequirement

@Nonnull
public Requirement identifyLocalBundlingRequirement()
                                             throws CloudException,
                                                    InternalException
Specified by:
identifyLocalBundlingRequirement in interface MachineImageSupport
Overrides:
identifyLocalBundlingRequirement in class AbstractImageSupport
Throws:
CloudException
InternalException

capture

protected MachineImage capture(@Nonnull
                               ImageCreateOptions options,
                               @Nullable
                               AsynchronousTask<MachineImage> task)
                        throws CloudException,
                               InternalException
Overrides:
capture in class AbstractImageSupport
Throws:
CloudException
InternalException

isImageSharedWithPublic

public boolean isImageSharedWithPublic(@Nonnull
                                       String machineImageId)
                                throws CloudException,
                                       InternalException
Specified by:
isImageSharedWithPublic in interface MachineImageSupport
Overrides:
isImageSharedWithPublic in class AbstractImageSupport
Throws:
CloudException
InternalException

isSubscribed

public boolean isSubscribed()
                     throws CloudException,
                            InternalException
Throws:
CloudException
InternalException

listImageStatus

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

listImages

@Nonnull
public Iterable<MachineImage> listImages(@Nullable
                                                 ImageFilterOptions options)
                                  throws CloudException,
                                         InternalException
Throws:
CloudException
InternalException

listSupportedFormats

@Nonnull
public Iterable<MachineImageFormat> listSupportedFormats()
                                                  throws CloudException,
                                                         InternalException
Specified by:
listSupportedFormats in interface MachineImageSupport
Overrides:
listSupportedFormats in class AbstractImageSupport
Throws:
CloudException
InternalException

listSupportedFormatsForBundling

@Nonnull
public Iterable<MachineImageFormat> listSupportedFormatsForBundling()
                                                             throws CloudException,
                                                                    InternalException
Specified by:
listSupportedFormatsForBundling in interface MachineImageSupport
Overrides:
listSupportedFormatsForBundling in class AbstractImageSupport
Throws:
CloudException
InternalException

searchMachineImages

@Nonnull
public Iterable<MachineImage> searchMachineImages(@Nullable
                                                          String keyword,
                                                          @Nullable
                                                          Platform platform,
                                                          @Nullable
                                                          Architecture architecture)
                                           throws CloudException,
                                                  InternalException
Specified by:
searchMachineImages in interface MachineImageSupport
Overrides:
searchMachineImages in class AbstractImageSupport
Throws:
CloudException
InternalException

searchPublicImages

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

supportsCustomImages

public boolean supportsCustomImages()
Specified by:
supportsCustomImages in interface MachineImageSupport
Overrides:
supportsCustomImages in class AbstractImageSupport

supportsDirectImageUpload

public boolean supportsDirectImageUpload()
                                  throws CloudException,
                                         InternalException
Specified by:
supportsDirectImageUpload in interface MachineImageSupport
Overrides:
supportsDirectImageUpload in class AbstractImageSupport
Throws:
CloudException
InternalException

supportsImageCapture

public boolean supportsImageCapture(@Nonnull
                                    MachineImageType type)
                             throws CloudException,
                                    InternalException
Specified by:
supportsImageCapture in interface MachineImageSupport
Overrides:
supportsImageCapture in class AbstractImageSupport
Throws:
CloudException
InternalException

supportsImageSharing

public boolean supportsImageSharing()
Specified by:
supportsImageSharing in interface MachineImageSupport
Overrides:
supportsImageSharing in class AbstractImageSupport

supportsImageSharingWithPublic

public boolean supportsImageSharingWithPublic()
Specified by:
supportsImageSharingWithPublic in interface MachineImageSupport
Overrides:
supportsImageSharingWithPublic in class AbstractImageSupport

supportsPublicLibrary

public boolean supportsPublicLibrary(@Nonnull
                                     ImageClass cls)
                              throws CloudException,
                                     InternalException
Specified by:
supportsPublicLibrary in interface MachineImageSupport
Overrides:
supportsPublicLibrary in class AbstractImageSupport
Throws:
CloudException
InternalException


Copyright © 2013 enStratus Networks Inc. All Rights Reserved.