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)
           
 ImageCapabilities getCapabilities()
           
 MachineImage getImage(String providerImageId)
           
 String getProviderTermForImage(Locale locale, ImageClass cls)
           
 boolean hasPublicLibrary()
           
 boolean isImageSharedWithPublic(String machineImageId)
           
 boolean isSubscribed()
           
 Iterable<MachineImage> listImages(ImageFilterOptions options)
           
 Iterable<ResourceStatus> listImageStatus(ImageClass cls)
           
 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()
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractImageSupport
addImageShare, addPublicShare, bundleVirtualMachine, bundleVirtualMachineAsync, captureImage, captureImageAsync, getContext, getMachineImage, getProvider, getProviderTermForCustomImage, getProviderTermForImage, identifyLocalBundlingRequirement, imageVirtualMachine, listImages, listImages, listMachineImages, listMachineImagesOwnedBy, listShares, listSupportedFormats, listSupportedFormatsForBundling, listSupportedImageClasses, listSupportedImageTypes, matches, registerImageBundle, remove, removeAllImageShares, removeImageShare, removePublicShare, removeTags, removeTags, searchImages, searchPublicImages, shareMachineImage, supportsDirectImageUpload, supportsImageCapture, supportsImageSharing, supportsImageSharingWithPublic, supportsPublicLibrary, 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

getCapabilities

public ImageCapabilities getCapabilities()
                                  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)

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

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

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


Copyright © 2014 enStratus Networks Inc. All Rights Reserved.