Package com.vmware.aurora.vc

Examples of com.vmware.aurora.vc.VcVirtualMachine.createSnapshot()


                  template.getSnapshotByName(vmSchema.diskSchema
                        .getParentSnap());
            if (snap == null) {
               // this is a blocking call
               snap =
                     template.createSnapshot(
                           vmSchema.diskSchema.getParentSnap(),
                           "Serengeti template Root Snapshot");
            }
            return null;
         }
View Full Code Here


            vm.attachVirtualDisk(diskId, disk1Bk, false, null);
            vm.dumpDevices();
         }

         // create a snapshot so that we can do linked clone
         vm.createSnapshot("snap1", "snap1");
         // test finding snapshots
         vm.createSnapshot("snap2", "snap2");
         VcSnapshot snap1 = vm.getSnapshotByName("snap1");
         AuAssert.check(snap1 != null);
         VcSnapshot snap2 = vm.getSnapshotByName("snap2");
View Full Code Here

         }

         // create a snapshot so that we can do linked clone
         vm.createSnapshot("snap1", "snap1");
         // test finding snapshots
         vm.createSnapshot("snap2", "snap2");
         VcSnapshot snap1 = vm.getSnapshotByName("snap1");
         AuAssert.check(snap1 != null);
         VcSnapshot snap2 = vm.getSnapshotByName("snap2");
         AuAssert.check(snap2 != null);
         System.out.println("snap1: " + snap1 + " snap2: " + snap2);
View Full Code Here

   public Void call() throws Exception {
      final VcVirtualMachine vm = VcCache.get(vmId);
      VcContext.inVcSessionDo(new VcSession<Void>() {
         @Override
         protected Void body() throws Exception {
            VcSnapshot snap = vm.createSnapshot(name, description);
            snapId = snap.getId();
            return null;
         }
         protected boolean isTaskSession() {
            return true;
View Full Code Here

            VcCache.get(vmSchema.diskSchema.getParent());
      VcSnapshot snap =
            template.getSnapshotByName(vmSchema.diskSchema.getParentSnap());
      if (snap == null) {
         // this is a blocking call
         snap = template.createSnapshot(vmSchema.diskSchema.getParentSnap(),
               "Serengeti template Root Snapshot");
      }
      ConfigSpecImpl configSpec = new ConfigSpecImpl();

      // Resource schema
View Full Code Here

               return true;
            }

            @Override
            protected Void body() throws Exception {
               vm.createSnapshot(name, description);
               return null;
            }
         });
         return null;
      }
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.