public interface SpotInstanceApi
Modifier and Type | Method and Description |
---|---|
void |
cancelSpotInstanceRequestsInRegion(String region,
String... requestIds)
Cancels one or more Spot Instance requests.
|
Set<SpotInstanceRequest> |
describeSpotInstanceRequestsInRegion(String region,
String... requestIds)
Describes Spot Instance requests.
|
Set<SpotInstanceRequest> |
describeSpotInstanceRequestsInRegionWithFilter(String region,
com.google.common.collect.Multimap<String,String> filter)
Describes Spot Instance requests.
|
Set<Spot> |
describeSpotPriceHistoryInRegion(String region,
DescribeSpotPriceHistoryOptions... options)
Describes Spot Price history.
|
SpotInstanceRequest |
requestSpotInstanceInRegion(String region,
float spotPrice,
String imageId,
String instanceType)
request a single spot instance
|
Set<SpotInstanceRequest> |
requestSpotInstancesInRegion(String region,
float spotPrice,
int instanceCount,
LaunchSpecification launchSpec,
RequestSpotInstancesOptions... options)
Creates a Spot Instance request.
|
@Named(value="DescribeSpotInstanceRequests") Set<SpotInstanceRequest> describeSpotInstanceRequestsInRegion(@Nullable String region, String... requestIds)
region
- Region where the spot instance service is runningrequestIds
- Specifies the ID of the Spot Instance request.requestSpotInstancesInRegion(java.lang.String, float, int, org.jclouds.aws.ec2.domain.LaunchSpecification, org.jclouds.aws.ec2.options.RequestSpotInstancesOptions...)
,
cancelSpotInstanceRequestsInRegion(java.lang.String, java.lang.String...)
,
describeSpotPriceHistoryInRegion(java.lang.String, org.jclouds.aws.ec2.options.DescribeSpotPriceHistoryOptions...)
,
@Named(value="DescribeSpotInstanceRequests") Set<SpotInstanceRequest> describeSpotInstanceRequestsInRegionWithFilter(@Nullable String region, com.google.common.collect.Multimap<String,String> filter)
region
- Region where the spot instance service is runningfilter
- Mulitmap of filter key/values.requestSpotInstancesInRegion(java.lang.String, float, int, org.jclouds.aws.ec2.domain.LaunchSpecification, org.jclouds.aws.ec2.options.RequestSpotInstancesOptions...)
,
cancelSpotInstanceRequestsInRegion(java.lang.String, java.lang.String...)
,
describeSpotPriceHistoryInRegion(java.lang.String, org.jclouds.aws.ec2.options.DescribeSpotPriceHistoryOptions...)
,
@Named(value="RequestSpotInstances") SpotInstanceRequest requestSpotInstanceInRegion(@Nullable String region, float spotPrice, String imageId, String instanceType)
region
- Region where the spot instance service is runningspotPrice
- Specifies the maximum hourly price for any Spot Instance launched to fulfill the
request.imageId
- The AMI ID.instanceType
- The instance type (ex. m1.small)requestSpotInstancesInRegion(java.lang.String, float, int, org.jclouds.aws.ec2.domain.LaunchSpecification, org.jclouds.aws.ec2.options.RequestSpotInstancesOptions...)
@Named(value="RequestSpotInstances") Set<SpotInstanceRequest> requestSpotInstancesInRegion(@Nullable String region, float spotPrice, int instanceCount, LaunchSpecification launchSpec, RequestSpotInstancesOptions... options)
region
- Region where the spot instance service is runningspotPrice
- Specifies the maximum hourly price for any Spot Instance launched to fulfill the
request.instanceCount
- number of instances to requestlaunchSpec
- includes at least The AMI ID and instance type (ex. m1.small)options
- options including expiration time or groupingdescribeSpotInstanceRequestsInRegion(java.lang.String, java.lang.String...)
,
cancelSpotInstanceRequestsInRegion(java.lang.String, java.lang.String...)
,
describeSpotPriceHistoryInRegion(java.lang.String, org.jclouds.aws.ec2.options.DescribeSpotPriceHistoryOptions...)
,
@Named(value="DescribeSpotPriceHistory") Set<Spot> describeSpotPriceHistoryInRegion(@Nullable String region, DescribeSpotPriceHistoryOptions... options)
region
- Region where the spot instance service is runningoptions
- options to control the describeVpcsInRegiondescribeSpotInstanceRequestsInRegion(java.lang.String, java.lang.String...)
,
requestSpotInstancesInRegion(java.lang.String, float, int, org.jclouds.aws.ec2.domain.LaunchSpecification, org.jclouds.aws.ec2.options.RequestSpotInstancesOptions...)
,
cancelSpotInstanceRequestsInRegion(java.lang.String, java.lang.String...)
,
@Named(value="CancelSpotInstanceRequests") void cancelSpotInstanceRequestsInRegion(@Nullable String region, String... requestIds)
region
- Region where the spot instance service is runningrequestIds
- Specifies the ID of the Spot Instance request.describeSpotInstanceRequestsInRegion(java.lang.String, java.lang.String...)
,
requestSpotInstancesInRegion(java.lang.String, float, int, org.jclouds.aws.ec2.domain.LaunchSpecification, org.jclouds.aws.ec2.options.RequestSpotInstancesOptions...)
,
describeSpotPriceHistoryInRegion(java.lang.String, org.jclouds.aws.ec2.options.DescribeSpotPriceHistoryOptions...)
,
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.