org.dasein.cloud.services.image
Interface ImageServices


public interface ImageServices


Method Summary
 String create(String location)
           
 void delete(String imageId)
           
 Collection<ServerImage> find(String executableByAccountNumber, String keyword, Platform platform, String architecture)
           
 ServerImage getImage(String imageId)
           
 CloudStoreObject getManifest(String imageId)
           
 String getProviderTermForImage(Locale locale)
           
 Collection<String> getShares(String imageId)
           
 AsynchronousTask<ServerImage> imageServer(String serverId, String forAccountAccessKey, String directory, String imageName)
           
 boolean isPublic(String imageId)
           
 boolean isSupportsCustomImages()
           
 boolean isSupportsSharing()
           
 Collection<ServerImage> list(String accountNumber)
           
 void share(String imageId, String withAccountId, boolean affirmative)
           
 

Method Detail

create

String create(String location)
              throws InternalException,
                     CloudException
Throws:
InternalException
CloudException

delete

void delete(String imageId)
            throws InternalException,
                   CloudException
Throws:
InternalException
CloudException

find

Collection<ServerImage> find(String executableByAccountNumber,
                             String keyword,
                             Platform platform,
                             String architecture)
                             throws InternalException,
                                    CloudException
Throws:
InternalException
CloudException

getImage

ServerImage getImage(String imageId)
                     throws InternalException,
                            CloudException
Throws:
InternalException
CloudException

getManifest

CloudStoreObject getManifest(String imageId)
                             throws CloudException,
                                    InternalException
Throws:
CloudException
InternalException

getProviderTermForImage

String getProviderTermForImage(Locale locale)

getShares

Collection<String> getShares(String imageId)
                             throws CloudException,
                                    InternalException
Throws:
CloudException
InternalException

imageServer

AsynchronousTask<ServerImage> imageServer(String serverId,
                                          String forAccountAccessKey,
                                          String directory,
                                          String imageName)
                                          throws InternalException,
                                                 CloudException
Throws:
InternalException
CloudException

isPublic

boolean isPublic(String imageId)
                 throws InternalException,
                        CloudException
Throws:
InternalException
CloudException

isSupportsCustomImages

boolean isSupportsCustomImages()
                               throws InternalException,
                                      CloudException
Throws:
InternalException
CloudException

isSupportsSharing

boolean isSupportsSharing()
                          throws InternalException,
                                 CloudException
Throws:
InternalException
CloudException

list

Collection<ServerImage> list(String accountNumber)
                             throws InternalException,
                                    CloudException
Throws:
InternalException
CloudException

share

void share(String imageId,
           String withAccountId,
           boolean affirmative)
           throws InternalException,
                  CloudException
Throws:
InternalException
CloudException