Examples of SnapshotCompleted


Examples of org.jclouds.ec2.predicates.SnapshotCompleted

   }

   @Test(dependsOnMethods = "testCreateVolumeInAvailabilityZone")
   void testCreateSnapshotInRegion() {
      Snapshot snapshot = client.createSnapshotInRegion(defaultRegion, volumeId);
      Predicate<Snapshot> snapshotted = retry(new SnapshotCompleted(client), 600, 10, SECONDS);
      assert snapshotted.apply(snapshot);

      Snapshot result = Iterables.getOnlyElement(client.describeSnapshotsInRegion(snapshot.getRegion(),
            snapshotIds(snapshot.getId())));
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

      socketTester = retry(socketOpen, 120, 1, SECONDS);

      VolumeAvailable volumeAvailable = injector.getInstance(VolumeAvailable.class);
      volumeTester = retry(volumeAvailable, 60, 1, SECONDS);

      SnapshotCompleted snapshotCompleted = injector.getInstance(SnapshotCompleted.class);
      snapshotTester = retry(snapshotCompleted, 120, 3, SECONDS);

      VolumeAttached volumeAttached = injector.getInstance(VolumeAttached.class);
      attachTester = retry(volumeAttached, 60, 1, SECONDS);
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

      socketTester = retry(socketOpen, 120, 1, SECONDS);

      VolumeAvailable volumeAvailable = injector.getInstance(VolumeAvailable.class);
      volumeTester = retry(volumeAvailable, 60, 1, SECONDS);

      SnapshotCompleted snapshotCompleted = injector.getInstance(SnapshotCompleted.class);
      snapshotTester = retry(snapshotCompleted, 120, 3, SECONDS);

      VolumeAttached volumeAttached = injector.getInstance(VolumeAttached.class);
      attachTester = retry(volumeAttached, 60, 1, SECONDS);
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

   }

   @Test(dependsOnMethods = "testCreateVolumeInAvailabilityZone")
   void testCreateSnapshotInRegion() {
      Snapshot snapshot = client.createSnapshotInRegion(defaultRegion, volumeId);
      Predicate<Snapshot> snapshotted = retry(new SnapshotCompleted(client), 600, 10, SECONDS);
      assert snapshotted.apply(snapshot);

      Snapshot result = Iterables.getOnlyElement(client.describeSnapshotsInRegion(snapshot.getRegion(),
            snapshotIds(snapshot.getId())));
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

      socketTester = retry(socketOpen, 120, 1, SECONDS);

      VolumeAvailable volumeAvailable = injector.getInstance(VolumeAvailable.class);
      volumeTester = retry(volumeAvailable, 60, 1, SECONDS);

      SnapshotCompleted snapshotCompleted = injector.getInstance(SnapshotCompleted.class);
      snapshotTester = retry(snapshotCompleted, 120, 3, SECONDS);

      VolumeAttached volumeAttached = injector.getInstance(VolumeAttached.class);
      attachTester = retry(volumeAttached, 60, 1, SECONDS);
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

   }

   @Test(dependsOnMethods = "testCreateVolumeInAvailabilityZone")
   void testCreateSnapshotInRegion() {
      Snapshot snapshot = client.createSnapshotInRegion(defaultRegion, volumeId);
      Predicate<Snapshot> snapshotted = retry(new SnapshotCompleted(client), 600, 10, SECONDS);
      assert snapshotted.apply(snapshot);

      Snapshot result = Iterables.getOnlyElement(client.describeSnapshotsInRegion(snapshot.getRegion(),
            snapshotIds(snapshot.getId())));
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

      socketTester = retry(socketOpen, 120, 1, SECONDS);

      VolumeAvailable volumeAvailable = injector.getInstance(VolumeAvailable.class);
      volumeTester = retry(volumeAvailable, 60, 1, SECONDS);

      SnapshotCompleted snapshotCompleted = injector.getInstance(SnapshotCompleted.class);
      snapshotTester = retry(snapshotCompleted, 120, 3, SECONDS);

      VolumeAttached volumeAttached = injector.getInstance(VolumeAttached.class);
      attachTester = retry(volumeAttached, 60, 1, SECONDS);
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

         BlockDevice device = instance.getEbsBlockDevices().get("/dev/sda1");
         assertNotNull(device, "device: /dev/sda1 not present on: " + instance);
         Snapshot snapshot = ec2Api.getElasticBlockStoreApi().get().createSnapshotInRegion(regionId,
                 device.getVolumeId());
         snapshotsToDelete.add(snapshot.getId());
         Predicate<Snapshot> snapshotted = retry(new SnapshotCompleted(ec2Api.getElasticBlockStoreApi().get()), 600, 10, SECONDS);
         assert snapshotted.apply(snapshot);
         return snapshot;
      } finally {
         if (instanceId != null)
            ec2Api.getInstanceApi().get().terminateInstancesInRegion(regionId, instanceId);
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

   }

   @Test(dependsOnMethods = "testCreateVolumeInAvailabilityZone")
   void testCreateSnapshotInRegion() {
      Snapshot snapshot = client.createSnapshotInRegion(defaultRegion, volumeId);
      Predicate<Snapshot> snapshotted = retry(new SnapshotCompleted(client), 600, 10, SECONDS);
      assert snapshotted.apply(snapshot);

      Snapshot result = Iterables.getOnlyElement(client.describeSnapshotsInRegion(snapshot.getRegion(),
            snapshotIds(snapshot.getId())));
View Full Code Here

Examples of org.jclouds.ec2.predicates.SnapshotCompleted

      socketTester = retry(socketOpen, 120, 1, SECONDS);

      VolumeAvailable volumeAvailable = injector.getInstance(VolumeAvailable.class);
      volumeTester = retry(volumeAvailable, 60, 1, SECONDS);

      SnapshotCompleted snapshotCompleted = injector.getInstance(SnapshotCompleted.class);
      snapshotTester = retry(snapshotCompleted, 120, 3, SECONDS);

      VolumeAttached volumeAttached = injector.getInstance(VolumeAttached.class);
      attachTester = retry(volumeAttached, 60, 1, SECONDS);
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.