public class ProxyComputeCloudClient extends Object implements ComputeCloudClient
| Modifier and Type | Field and Description |
|---|---|
protected ComputeCloudClient |
client |
| Constructor and Description |
|---|
ProxyComputeCloudClient(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.
|
void |
close()
Closes the client connection.
|
void |
createInstanceOrchestration(String name,
ComputeCloudInstanceOrchestrationConfig params)
Creates an orchestration with the specified name that contains a
launchplan for an instance with the specified configuration.
|
void |
deleteOrchestration(String name)
Deletes an orchestration with the specified name.
|
Collection<ImageListEntry> |
getImageListEntries(String imageListName)
Retrieves imagelist entries for a specified imagelist
|
Collection<ImageList> |
getImageLists(ImageListSourceType sourceType)
Retrieve the list of imagelist according to source type
|
InstanceOrchestration |
getInstanceOrchestration(String name)
Gets a subset of properties from an instance orchestration created from
ComputeCloudClient.createInstanceOrchestration(java.lang.String, com.oracle.cloud.compute.jenkins.client.ComputeCloudInstanceOrchestrationConfig) |
Collection<SecurityList> |
getSecurityLists()
Retrieves the security lists
|
Collection<Shape> |
getShapes()
Retrieves the CPU and memory details of all the available shapes.
|
SSHKey |
getSSHKey(String name)
Retrieves an SSH key of the current user.
|
Collection<SSHKey> |
getSSHKeys()
Retrieves the SSH keys of the current user.
|
protected void |
preInvoke() |
void |
startOrchestration(String name)
Starts an orchestration with the specified name.
|
void |
stopOrchestration(String name)
Stops an orchestration with the specified name.
|
String |
toString() |
protected final ComputeCloudClient client
public ProxyComputeCloudClient(ComputeCloudClient client)
protected void preInvoke()
throws ComputeCloudClientException
ComputeCloudClientExceptionpublic void close()
ComputeCloudClientclose in interface ComputeCloudClientclose in interface AutoCloseablepublic void authenticate()
throws ComputeCloudClientException
ComputeCloudClientauthenticate in interface ComputeCloudClientComputeCloudClientUnauthorizedException - if authentication failedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic Collection<Shape> getShapes() throws ComputeCloudClientException
ComputeCloudClientgetShapes in interface ComputeCloudClientShape objectsComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic Collection<SecurityList> getSecurityLists() throws ComputeCloudClientException
ComputeCloudClientgetSecurityLists in interface ComputeCloudClientSecurityListComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic Collection<SSHKey> getSSHKeys() throws ComputeCloudClientException
ComputeCloudClientgetSSHKeys in interface ComputeCloudClientSSHKeyComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic SSHKey getSSHKey(String name) throws ComputeCloudClientException
ComputeCloudClientgetSSHKey in interface ComputeCloudClientname - of SSH keyComputeCloudClientUnauthorizedException - 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
ComputeCloudClientgetImageLists in interface ComputeCloudClientImageListComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic Collection<ImageListEntry> getImageListEntries(String imageListName) throws ComputeCloudClientException
ComputeCloudClientgetImageListEntries in interface ComputeCloudClientimageListName - ImageList name which used to get related versionsImageListEntryComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic void createInstanceOrchestration(String name, ComputeCloudInstanceOrchestrationConfig params) throws ComputeCloudClientException
ComputeCloudClientcreateInstanceOrchestration in interface ComputeCloudClientname - the orchestration nameparams - the instance configurationComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic InstanceOrchestration getInstanceOrchestration(String name) throws ComputeCloudClientException
ComputeCloudClientComputeCloudClient.createInstanceOrchestration(java.lang.String, com.oracle.cloud.compute.jenkins.client.ComputeCloudInstanceOrchestrationConfig)getInstanceOrchestration in interface ComputeCloudClientname - the orchestration nameInstanceOrchestration instance with the specified nameComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic void startOrchestration(String name) throws ComputeCloudClientException
ComputeCloudClientstartOrchestration in interface ComputeCloudClientname - the orchestration nameComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic void stopOrchestration(String name) throws ComputeCloudClientException
ComputeCloudClientstopOrchestration in interface ComputeCloudClientname - the orchestration nameComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverpublic void deleteOrchestration(String name) throws ComputeCloudClientException
ComputeCloudClientdeleteOrchestration in interface ComputeCloudClientname - the orchestration nameComputeCloudClientUnauthorizedException - if the authentication
token has timed out or the user is not authorizedComputeCloudClientException - if an error occurs communicating with
the endpoint serverCopyright © 2016–2018. All rights reserved.