org.dasein.cloud.aws.compute
Class AMI

java.lang.Object
  extended by org.dasein.cloud.aws.compute.AMI
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.MachineImageSupport

public class AMI
extends Object
implements org.dasein.cloud.compute.MachineImageSupport


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
 void downloadImage(String machineImageId, OutputStream toOutput)
           
 org.dasein.cloud.compute.MachineImage getMachineImage(String imageId)
           
 String getProviderTermForImage(Locale locale)
           
 boolean hasPublicLibrary()
           
 org.dasein.cloud.AsynchronousTask<String> imageVirtualMachine(String vmId, String name, String description)
           
 org.dasein.cloud.AsynchronousTask<String> imageVirtualMachineToStorage(String vmId, String name, String description, String directory)
           
 String installImageFromUpload(org.dasein.cloud.compute.MachineImageFormat format, InputStream imageStream)
           
 boolean isImageSharedWithPublic(String machineImageId)
           
 boolean isSubscribed()
           
 Collection<org.dasein.cloud.compute.MachineImage> listMachineImages()
           
 Collection<org.dasein.cloud.compute.MachineImage> listMachineImagesOwnedBy(String owner)
           
 Iterable<String> listShares(String forMachineImageId)
           
 Iterable<org.dasein.cloud.compute.MachineImageFormat> listSupportedFormats()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 String registerMachineImage(String atStorageLocation)
           
 void remove(String imageId)
           
 Iterable<org.dasein.cloud.compute.MachineImage> searchMachineImages(String keyword, org.dasein.cloud.compute.Platform platform, org.dasein.cloud.compute.Architecture architecture)
           
 void shareMachineImage(String machineImageId, String withAccountId, boolean allowShare)
           
 boolean supportsCustomImages()
           
 boolean supportsImageSharing()
           
 boolean supportsImageSharingWithPublic()
           
 String transfer(org.dasein.cloud.CloudProvider fromCloud, String machineImageId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

downloadImage

public void downloadImage(String machineImageId,
                          OutputStream toOutput)
                   throws org.dasein.cloud.CloudException,
                          org.dasein.cloud.InternalException
Specified by:
downloadImage in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getMachineImage

public org.dasein.cloud.compute.MachineImage getMachineImage(String imageId)
                                                      throws org.dasein.cloud.InternalException,
                                                             org.dasein.cloud.CloudException
Specified by:
getMachineImage in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getProviderTermForImage

public String getProviderTermForImage(Locale locale)
Specified by:
getProviderTermForImage in interface org.dasein.cloud.compute.MachineImageSupport

hasPublicLibrary

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

imageVirtualMachine

public org.dasein.cloud.AsynchronousTask<String> imageVirtualMachine(String vmId,
                                                                     String name,
                                                                     String description)
                                                              throws org.dasein.cloud.CloudException,
                                                                     org.dasein.cloud.InternalException
Specified by:
imageVirtualMachine in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

imageVirtualMachineToStorage

public org.dasein.cloud.AsynchronousTask<String> imageVirtualMachineToStorage(String vmId,
                                                                              String name,
                                                                              String description,
                                                                              String directory)
                                                                       throws org.dasein.cloud.CloudException,
                                                                              org.dasein.cloud.InternalException
Specified by:
imageVirtualMachineToStorage in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

installImageFromUpload

public String installImageFromUpload(org.dasein.cloud.compute.MachineImageFormat format,
                                     InputStream imageStream)
                              throws org.dasein.cloud.CloudException,
                                     org.dasein.cloud.InternalException
Specified by:
installImageFromUpload in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isImageSharedWithPublic

public boolean isImageSharedWithPublic(String machineImageId)
                                throws org.dasein.cloud.CloudException,
                                       org.dasein.cloud.InternalException
Specified by:
isImageSharedWithPublic in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Specified by:
isSubscribed in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listMachineImages

public Collection<org.dasein.cloud.compute.MachineImage> listMachineImages()
                                                                    throws org.dasein.cloud.InternalException,
                                                                           org.dasein.cloud.CloudException
Specified by:
listMachineImages in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listMachineImagesOwnedBy

public Collection<org.dasein.cloud.compute.MachineImage> listMachineImagesOwnedBy(String owner)
                                                                           throws org.dasein.cloud.InternalException,
                                                                                  org.dasein.cloud.CloudException
Specified by:
listMachineImagesOwnedBy in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listShares

public Iterable<String> listShares(String forMachineImageId)
                            throws org.dasein.cloud.CloudException,
                                   org.dasein.cloud.InternalException
Specified by:
listShares in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSupportedFormats

public Iterable<org.dasein.cloud.compute.MachineImageFormat> listSupportedFormats()
                                                                           throws org.dasein.cloud.CloudException,
                                                                                  org.dasein.cloud.InternalException
Specified by:
listSupportedFormats in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         org.dasein.cloud.identity.ServiceAction action)
Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService

registerMachineImage

public String registerMachineImage(String atStorageLocation)
                            throws org.dasein.cloud.CloudException,
                                   org.dasein.cloud.InternalException
Specified by:
registerMachineImage in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

remove

public void remove(String imageId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
remove in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

searchMachineImages

public Iterable<org.dasein.cloud.compute.MachineImage> searchMachineImages(String keyword,
                                                                           org.dasein.cloud.compute.Platform platform,
                                                                           org.dasein.cloud.compute.Architecture architecture)
                                                                    throws org.dasein.cloud.InternalException,
                                                                           org.dasein.cloud.CloudException
Specified by:
searchMachineImages in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

shareMachineImage

public void shareMachineImage(String machineImageId,
                              String withAccountId,
                              boolean allowShare)
                       throws org.dasein.cloud.CloudException,
                              org.dasein.cloud.InternalException
Specified by:
shareMachineImage in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsCustomImages

public boolean supportsCustomImages()
Specified by:
supportsCustomImages in interface org.dasein.cloud.compute.MachineImageSupport

supportsImageSharing

public boolean supportsImageSharing()
Specified by:
supportsImageSharing in interface org.dasein.cloud.compute.MachineImageSupport

supportsImageSharingWithPublic

public boolean supportsImageSharingWithPublic()
Specified by:
supportsImageSharingWithPublic in interface org.dasein.cloud.compute.MachineImageSupport

transfer

public String transfer(org.dasein.cloud.CloudProvider fromCloud,
                       String machineImageId)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
transfer in interface org.dasein.cloud.compute.MachineImageSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2012 enStratus Networks LLC. All Rights Reserved.