public class CachingComputeCloudClient extends ProxyComputeCloudClient
client
Constructor and Description |
---|
CachingComputeCloudClient(ComputeCloudClient client) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
Authenticates the client and stores an authentication token to allow
other methods to be called.
|
Collection<ImageList> |
getImageLists(ImageListSourceType sourceType)
Retrieve the list of imagelist according to source type
|
Collection<Shape> |
getShapes()
Retrieves the CPU and memory details of all the available shapes.
|
close, createInstanceOrchestration, deleteOrchestration, getImageListEntries, getInstanceOrchestration, getSecurityLists, getSSHKey, getSSHKeys, preInvoke, startOrchestration, stopOrchestration, toString
public CachingComputeCloudClient(ComputeCloudClient client)
public void authenticate() throws ComputeCloudClientException
ComputeCloudClient
authenticate
in interface ComputeCloudClient
authenticate
in class ProxyComputeCloudClient
ComputeCloudClientUnauthorizedException
- if authentication failedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverpublic Collection<Shape> getShapes() throws ComputeCloudClientException
ComputeCloudClient
getShapes
in interface ComputeCloudClient
getShapes
in class ProxyComputeCloudClient
Shape
objectsComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverpublic Collection<ImageList> getImageLists(ImageListSourceType sourceType) throws ComputeCloudClientException
ComputeCloudClient
getImageLists
in interface ComputeCloudClient
getImageLists
in class ProxyComputeCloudClient
ImageList
ComputeCloudClientException
- if an error occurs communicating with
the endpoint serverCopyright © 2016–2018. All rights reserved.