Interface ComputeClient
- All Known Implementing Classes:
ComputeClientImpl
public interface ComputeClient
The API interface exposed by the YellowDog Compute Service
-
Method Summary
Modifier and TypeMethodDescriptionaddComputeRequirement
(ComputeRequirement computeRequirement) Submits a NEW requirement to YellowDog Compute to be initialised and provisioned.void
addComputeRequirementListener
(ComputeRequirement computeRequirement, SubscriptionEventListener<ComputeRequirement> listener) Adds an event listener to receive notifications of changes for the specified requirement.void
addComputeRequirementListener
(String computeRequirementId, SubscriptionEventListener<ComputeRequirement> listener) Adds an event listener to receive notifications of changes for the specified requirement.addComputeRequirementTemplate
(ComputeRequirementTemplate computeRequirementTemplate) addComputeSourceTemplate
(ComputeSourceTemplate computeSourceTemplate) void
deleteComputeRequirementTemplate
(ComputeRequirementTemplate computeRequirementTemplate) void
deleteComputeRequirementTemplate
(String computeRequirementTemplateId) void
deleteComputeSourceTemplate
(ComputeSourceTemplate computeSourceTemplate) void
deleteComputeSourceTemplate
(String computeSourceTemplateId) void
deprovisionInstances
(ComputeRequirement computeRequirement, List<Instance> instances) Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement and reduce the requirement's instance count accordingly.void
deprovisionInstancesById
(ComputeRequirement computeRequirement, List<InstanceId> instanceIds) Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement and reduce the requirement's instance count accordingly.Returns summaries of all existing compute requirement templates within the system for the requesting user.getBestComputeSourceReportByComputeRequirement
(String provisionedComputeRequirementId) Gets the provision report for a compute requirement provisioned from a dynamic template.getComputeRequirement
(ComputeRequirement computeRequirement) Requests the latest view of the specified requirement from YellowDog Compute.getComputeRequirement
(String computeRequirementId) Requests the latest view of the specified requirement from YellowDog Compute.getComputeRequirement
(String namespace, String computeRequirementName) Requests the latest view of the specified requirement from YellowDog Compute.getComputeRequirementHelper
(ComputeRequirement computeRequirement) Constructs a new compute requirement helper for the specified requirement.getComputeRequirementHelper
(String computeRequirementId) Constructs a new compute requirement helper for the specified requirement.getComputeRequirements
(ComputeRequirementSearch computeRequirementSearch) Deprecated.getComputeRequirementSummaries
(ComputeRequirementSummarySearch computeRequirementSummarySearch) getComputeRequirementTemplate
(String computeRequirementTemplateId) getComputeRequirementTemplate
(String namespace, String name) getComputeSourceTemplate
(String computeSourceTemplateId) getInstances
(InstanceSearch instanceSearch) Returns a search client for searching instances.boolean
isComputeRequirementUpdating
(ComputeRequirement computeRequirement) Checks the current busy state of the specified requirement, returning true if the requirement is being updated by YellowDog Compute; otherwise, false.boolean
isComputeRequirementUpdating
(String computeRequirementId) Checks the current busy state of the specified requirement, returning true if the requirement is being updated by YellowDog Compute; otherwise, false.provisionComputeRequirementTemplate
(ComputeRequirementTemplateUsage computeRequirementTemplateUsage) Provisions a new compute requirement based on the specified template and requirement properties.void
Removes the specified event listener.reprovisionComputeRequirement
(ComputeRequirement computeRequirement) Instructs YellowDog Compute to provision more instances if required such that the number of running instances meets the targetInstanceCount.reprovisionComputeRequirement
(String computeRequirementId) Instructs YellowDog Compute to provision more instances if required such that the number of running instances meets the targetInstanceCount.void
restartInstances
(ComputeRequirement computeRequirement, List<Instance> instances) Instructs YellowDog Compute to restart (reboot) the specified instances provisioned for the specified requirement.void
restartInstancesById
(ComputeRequirement computeRequirement, List<InstanceId> instanceIds) Instructs YellowDog Compute to restart (reboot) the specified instances provisioned for the specified requirement.startComputeRequirement
(ComputeRequirement computeRequirement) Instructs YellowDog Compute to start all stopped instances provisioned for the specified requirement.startComputeRequirement
(String computeRequirementId) Instructs YellowDog Compute to start all stopped instances provisioned for the specified requirement.void
startInstances
(ComputeRequirement computeRequirement, List<Instance> instances) Instructs YellowDog Compute to start the specified instances provisioned for the specified requirement.void
startInstancesById
(ComputeRequirement computeRequirement, List<InstanceId> instanceIds) Instructs YellowDog Compute to start the specified instances provisioned for the specified requirement.stopComputeRequirement
(ComputeRequirement computeRequirement) Instructs YellowDog Compute to stop all running instances provisioned for the specified requirement.stopComputeRequirement
(String computeRequirementId) Instructs YellowDog Compute to stop all running instances provisioned for the specified requirement.void
stopInstances
(ComputeRequirement computeRequirement, List<Instance> instances) Instructs YellowDog Compute to stop the specified instances provisioned for the specified requirement.void
stopInstancesById
(ComputeRequirement computeRequirement, List<InstanceId> instanceIds) Instructs YellowDog Compute to stop the specified instances provisioned for the specified requirement.terminateComputeRequirement
(ComputeRequirement computeRequirement) Instructs YellowDog Compute to terminate the specified requirement.terminateComputeRequirement
(String computeRequirementId) Instructs YellowDog Compute to terminate the specified requirement.void
terminateInstances
(ComputeRequirement computeRequirement, List<Instance> instances) Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement.void
terminateInstancesById
(ComputeRequirement computeRequirement, List<InstanceId> instanceIds) Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement.testComputeRequirementTemplate
(ComputeRequirementTemplateUsage computeRequirementTemplateUsage) Generates a new compute requirement based on the specified template and requirement properties.updateComputeRequirement
(ComputeRequirement computeRequirement) Submits an existing requirement to YellowDog Compute in order to provision any changes.updateComputeRequirement
(ComputeRequirement computeRequirement, boolean reprovision) Submits an existing requirement to YellowDog Compute in order to provision any changes.updateComputeRequirementTemplate
(ComputeRequirementTemplate computeRequirementTemplate) updateComputeSourceTemplate
(ComputeSourceTemplate computeSourceTemplate)
-
Method Details
-
addComputeRequirement
Submits a NEW requirement to YellowDog Compute to be initialised and provisioned.- Parameters:
computeRequirement
- the requirement to submit to YellowDog Compute- Returns:
- the initialised requirement returned from YellowDog Compute
- Throws:
ClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
updateComputeRequirement
Submits an existing requirement to YellowDog Compute in order to provision any changes.- Parameters:
computeRequirement
- the requirement to submit to YellowDog Compute- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
updateComputeRequirement
ComputeRequirement updateComputeRequirement(ComputeRequirement computeRequirement, boolean reprovision) Submits an existing requirement to YellowDog Compute in order to provision any changes.- Parameters:
computeRequirement
- the requirement to submit to YellowDog Computereprovision
- indicates that YellowDog Compute should provision instances to restore the instance count even if targetInstanceCount is unchanged- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
getComputeRequirement
Requests the latest view of the specified requirement from YellowDog Compute.- Parameters:
computeRequirement
- the requirement for which to get the latest view- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
getComputeRequirement
Requests the latest view of the specified requirement from YellowDog Compute.- Parameters:
computeRequirementId
- the ID of the requirement- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
ClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
getComputeRequirement
Requests the latest view of the specified requirement from YellowDog Compute.- Parameters:
namespace
- the namespace containing the requirementcomputeRequirementName
- the name of the requirement- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
ClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
stopComputeRequirement
Instructs YellowDog Compute to stop all running instances provisioned for the specified requirement.- Parameters:
computeRequirement
- the requirement to stop- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if not allsources
used in the requirement support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
stopComputeRequirement
Instructs YellowDog Compute to stop all running instances provisioned for the specified requirement.- Parameters:
computeRequirementId
- the ID of the requirement to stop- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if not allsources
used in the requirement support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
startComputeRequirement
Instructs YellowDog Compute to start all stopped instances provisioned for the specified requirement.- Parameters:
computeRequirement
- the requirement to start- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if not allsources
used in the requirement support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
startComputeRequirement
Instructs YellowDog Compute to start all stopped instances provisioned for the specified requirement.- Parameters:
computeRequirementId
- the ID of the requirement to start- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if not allsources
used in the requirement support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
terminateComputeRequirement
Instructs YellowDog Compute to terminate the specified requirement.- Parameters:
computeRequirement
- the requirement to terminate- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
terminateComputeRequirement
Instructs YellowDog Compute to terminate the specified requirement.- Parameters:
computeRequirementId
- the ID of the requirement to terminate- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
reprovisionComputeRequirement
Instructs YellowDog Compute to provision more instances if required such that the number of running instances meets the targetInstanceCount.- Parameters:
computeRequirement
- the requirement to terminate- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
reprovisionComputeRequirement
Instructs YellowDog Compute to provision more instances if required such that the number of running instances meets the targetInstanceCount.- Parameters:
computeRequirementId
- the ID of the requirement to terminate- Returns:
- the latest view of the requirement returned from YellowDog Compute
- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
getInstances
Returns a search client for searching instances.- Parameters:
instanceSearch
- the search criteria- Returns:
- a search client for searching instances
-
stopInstances
Instructs YellowDog Compute to stop the specified instances provisioned for the specified requirement. YellowDog Compute will only attempt to stop instances that areInstanceStatus.RUNNING
orInstanceStatus.UNKNOWN
.- Parameters:
computeRequirement
- the requirement containing the instancesinstances
- The instances to stop- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if any of thesources
associated with the specified instances do not support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
stopInstancesById
Instructs YellowDog Compute to stop the specified instances provisioned for the specified requirement. YellowDog Compute will only attempt to stop instances that areInstanceStatus.RUNNING
orInstanceStatus.UNKNOWN
.- Parameters:
computeRequirement
- the requirement containing the instancesinstanceIds
- the ids of instances to stop- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if any of thesources
associated with the specified instances do not support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
startInstances
Instructs YellowDog Compute to start the specified instances provisioned for the specified requirement. YellowDog Compute will only attempt to start instances that areInstanceStatus.STOPPED
orInstanceStatus.UNKNOWN
.- Parameters:
computeRequirement
- the requirement containing the instancesinstances
- the instances to start- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if any of thesources
associated with the specified instances do not support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
startInstancesById
Instructs YellowDog Compute to start the specified instances provisioned for the specified requirement. YellowDog Compute will only attempt to start instances that areInstanceStatus.STOPPED
orInstanceStatus.UNKNOWN
.- Parameters:
computeRequirement
- the requirement containing the instancesinstanceIds
- the ids of instances to start- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeUnsupportedOperationException
- if any of thesources
associated with the specified instances do not support STOP/START operationsClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
terminateInstances
Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement. YellowDog Compute will not attempt to terminate instances that are alreadyInstanceStatus.TERMINATING
.- Parameters:
computeRequirement
- the requirement containing the instancesinstances
- the instances to terminate- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
terminateInstancesById
Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement. YellowDog Compute will not attempt to terminate instances that are alreadyInstanceStatus.TERMINATING
.- Parameters:
computeRequirement
- the requirement containing the instancesinstanceIds
- the ids of instances to terminate- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
restartInstances
Instructs YellowDog Compute to restart (reboot) the specified instances provisioned for the specified requirement. YellowDog Compute will only attempt to restart instances that areInstanceStatus.RUNNING
,InstanceStatus.STOPPED
orInstanceStatus.UNKNOWN
.- Parameters:
computeRequirement
- the requirement containing the instancesinstances
- the instances to restart- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
restartInstancesById
Instructs YellowDog Compute to restart (reboot) the specified instances provisioned for the specified requirement. YellowDog Compute will only attempt to restart instances that areInstanceStatus.RUNNING
,InstanceStatus.STOPPED
orInstanceStatus.UNKNOWN
.- Parameters:
computeRequirement
- the requirement containing the instancesinstanceIds
- the instances to restart- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
deprovisionInstances
Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement and reduce the requirement's instance count accordingly. YellowDog Compute will not attempt to deprovision instances that are alreadyInstanceStatus.TERMINATING
.- Parameters:
computeRequirement
- the requirement containing the instancesinstances
- the instances to deprovision- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
deprovisionInstancesById
Instructs YellowDog Compute to terminate the specified instances provisioned for the specified requirement and reduce the requirement's instance count accordingly. YellowDog Compute will not attempt to deprovision instances that are alreadyInstanceStatus.TERMINATING
.- Parameters:
computeRequirement
- the requirement containing the instancesinstanceIds
- the ids of instances to deprovision- Throws:
IllegalArgumentException
- if not all the specified instances are contained within the specified requirement; or if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the request
-
isComputeRequirementUpdating
Checks the current busy state of the specified requirement, returning true if the requirement is being updated by YellowDog Compute; otherwise, false.- Parameters:
computeRequirement
- the requirement to check- Returns:
- true, if the requirement is being updated by YellowDog Compute; otherwise, false
-
isComputeRequirementUpdating
Checks the current busy state of the specified requirement, returning true if the requirement is being updated by YellowDog Compute; otherwise, false.- Parameters:
computeRequirementId
- the ID of the requirement to check- Returns:
- true, if the requirement is being updated by YellowDog Compute; otherwise, false
-
addComputeRequirementListener
void addComputeRequirementListener(ComputeRequirement computeRequirement, SubscriptionEventListener<ComputeRequirement> listener) Adds an event listener to receive notifications of changes for the specified requirement. The client manages subscriptions to YellowDog Compute such that the first listener created for a requirement will cause a Server-Sent Events subscription to be initiated; additional listeners for the same requirement share that subscription.- Parameters:
computeRequirement
- the requirement for which to receive notificationslistener
- the event listener that will be invoked for notifications- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the subscription requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the subscription request
-
addComputeRequirementListener
void addComputeRequirementListener(String computeRequirementId, SubscriptionEventListener<ComputeRequirement> listener) Adds an event listener to receive notifications of changes for the specified requirement. The client manages subscriptions to YellowDog Compute such that the first listener created for a requirement will cause a Server-Sent Events subscription to be initiated; additional listeners for the same requirement share that subscription.- Parameters:
computeRequirementId
- the ID of the requirement for which to receive notificationslistener
- the event listener that will be invoked for notifications- Throws:
IllegalArgumentException
- if the specified requirement has not yet been submitted to YellowDog ComputeClientErrorException
- if YellowDog Compute returns an HTTP 4xx error due to an issue with the subscription requestServerErrorException
- if YellowDog Compute returns an HTTP 5xx error due to a server error whilst processing the subscription request
-
removeComputeRequirementListener
Removes the specified event listener. The client manages subscriptions to YellowDog Compute such that when the last listener for a requirement is removed, the associated Server-Sent Events subscription is cancelled.- Parameters:
listener
- the event listener that will no longer be invoked for notifications
-
getComputeRequirementHelper
Constructs a new compute requirement helper for the specified requirement.- Parameters:
computeRequirement
- the compute requirement for which the helper will be constructed- Returns:
- a new compute requirement helper
-
getComputeRequirementHelper
Constructs a new compute requirement helper for the specified requirement.- Parameters:
computeRequirementId
- the ID of the compute requirement for which the helper will be constructed- Returns:
- a new compute requirement helper
-
getComputeRequirements
@Deprecated SearchClient<ComputeRequirement> getComputeRequirements(ComputeRequirementSearch computeRequirementSearch) Deprecated.Returns a search client for searching compute requirements.- Parameters:
computeRequirementSearch
- the search criteria- Returns:
- a search client for searching compute requirements
-
getComputeRequirementSummaries
SearchClient<ComputeRequirementSummary> getComputeRequirementSummaries(ComputeRequirementSummarySearch computeRequirementSummarySearch) -
addComputeSourceTemplate
-
updateComputeSourceTemplate
-
deleteComputeSourceTemplate
-
deleteComputeSourceTemplate
-
getComputeSourceTemplate
-
findAllComputeSourceTemplates
List<ComputeSourceTemplateSummary> findAllComputeSourceTemplates() -
addComputeRequirementTemplate
ComputeRequirementTemplate addComputeRequirementTemplate(ComputeRequirementTemplate computeRequirementTemplate) -
updateComputeRequirementTemplate
ComputeRequirementTemplate updateComputeRequirementTemplate(ComputeRequirementTemplate computeRequirementTemplate) -
deleteComputeRequirementTemplate
-
deleteComputeRequirementTemplate
-
getComputeRequirementTemplate
-
getComputeRequirementTemplate
-
findAllComputeRequirementTemplates
List<ComputeRequirementTemplateSummary> findAllComputeRequirementTemplates()Returns summaries of all existing compute requirement templates within the system for the requesting user.- Returns:
- a list of compute requirement template summaries
-
provisionComputeRequirementTemplate
ComputeRequirement provisionComputeRequirementTemplate(ComputeRequirementTemplateUsage computeRequirementTemplateUsage) Provisions a new compute requirement based on the specified template and requirement properties.- Parameters:
computeRequirementTemplateUsage
- An object defining the template ID and requirement properties- Returns:
- the provisioned compute requirement
-
testComputeRequirementTemplate
ComputeRequirementTemplateTestResult testComputeRequirementTemplate(ComputeRequirementTemplateUsage computeRequirementTemplateUsage) Generates a new compute requirement based on the specified template and requirement properties. Includes other related information such as a BestComputeSourceReport if relevant.- Parameters:
computeRequirementTemplateUsage
- An object defining the template ID and requirement properties- Returns:
- the template test result
-
getBestComputeSourceReportByComputeRequirement
BestComputeSourceReport getBestComputeSourceReportByComputeRequirement(String provisionedComputeRequirementId) Gets the provision report for a compute requirement provisioned from a dynamic template.- Parameters:
provisionedComputeRequirementId
- the ID of the provisioned compute requirement- Returns:
- the provision report for a compute requirement provisioned from a dynamic template
-
getComputeRequirementSummaries(ComputeRequirementSummarySearch)
instead.