Examples of SpotInstanceApi


Examples of org.jclouds.aws.ec2.features.SpotInstanceApi

      Function<SpotInstanceRequest, AWSRunningInstance> converter = Functions.forMap(ImmutableMap.of(spot1, instance1,
            spot2, instance2));

      AWSEC2Api client = createMock(AWSEC2Api.class);
      SpotInstanceApi spotApi = createMock(SpotInstanceApi.class);

      expect(client.getSpotInstanceApi()).andReturn((Optional) Optional.of(spotApi));
      expect(spotApi.describeSpotInstanceRequestsInRegion("us-east-1", "sir-aaaa", "sir-bbbb")).andReturn(
            ImmutableSet.of(spot1, spot2));

      replay(client, spotApi);

      PresentSpotRequestsAndInstances fn = new PresentSpotRequestsAndInstances(client, converter);
View Full Code Here

Examples of org.jclouds.aws.ec2.features.SpotInstanceApi

      Function<SpotInstanceRequest, AWSRunningInstance> converter = Functions.forMap(ImmutableMap.of(spot1, instance1,
            spot2, instance2));

      AWSEC2Api client = createMock(AWSEC2Api.class);
      SpotInstanceApi spotApi = createMock(SpotInstanceApi.class);

      expect(client.getSpotInstanceApi()).andReturn((Optional) Optional.of(spotApi));
      expect(spotApi.describeSpotInstanceRequestsInRegion("us-east-1", "sir-aaaa", "sir-bbbb")).andReturn(
            ImmutableSet.of(spot1, spot2));

      replay(client, spotApi);

      PresentSpotRequestsAndInstances fn = new PresentSpotRequestsAndInstances(client, converter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.