org.dasein.cloud.vsphere.compute
Class Template

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

public class Template
extends AbstractImageSupport<PrivateCloud>


Field Summary
 
Fields inherited from interface org.dasein.cloud.compute.MachineImageSupport
ANY, COPY_IMAGE, 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)
           
 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> searchPublicImages(ImageFilterOptions options)
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractImageSupport
addImageShare, addPublicShare, bundleVirtualMachine, bundleVirtualMachineAsync, captureImage, captureImageAsync, copyImage, getContext, getMachineImage, getProvider, getProviderTermForCustomImage, getProviderTermForImage, getProviderTermForImage, hasPublicLibrary, identifyLocalBundlingRequirement, imageVirtualMachine, listImages, listImages, listMachineImages, listMachineImagesOwnedBy, listShares, listSupportedFormats, listSupportedFormatsForBundling, listSupportedImageClasses, listSupportedImageTypes, matches, registerImageBundle, remove, removeAllImageShares, removeImageShare, removePublicShare, removeTags, removeTags, searchImages, searchMachineImages, searchPublicImages, setTags, setTags, shareMachineImage, supportsCustomImages, 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

mapServiceAction

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

capture

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

isImageSharedWithPublic

public boolean isImageSharedWithPublic(@Nonnull
                                       String machineImageId)
                                throws CloudException,
                                       InternalException
Specified by:
isImageSharedWithPublic in interface MachineImageSupport
Overrides:
isImageSharedWithPublic in class AbstractImageSupport<PrivateCloud>
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<PrivateCloud>
Throws:
CloudException
InternalException

listImages

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

searchPublicImages

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


Copyright © 2015 enStratus Networks Inc. All Rights Reserved.