Package com.vmware.vim.binding.vim.vm

Examples of com.vmware.vim.binding.vim.vm.Snapshot


   private Map<DeviceId, DiskSize> sizeDetail;
   private DiskSize vmsnFileSize;

   @Override
   protected void update(ManagedObject mo) {
      final Snapshot snap = (Snapshot)mo;
      config = snap.getConfig();
      updateSize();
   }
View Full Code Here


   public VcTask remove(final IVcTaskCallback callback) throws Exception {
      // remove child snaps=false, consolidate=true
      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         @Override
         public VcTask body() throws Exception {
            Snapshot snap = getManagedObject();
            return new VcTask(TaskType.RemoveSnap, snap.remove(false, true), callback);
         }
      });
      return task;
   }
View Full Code Here

   public VcTask revert(final IVcTaskCallback callback) throws Exception {
      // revert to snapshot: host=null, suppressPowerOn=false
      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         @Override
         public VcTask body() throws Exception {
            final Snapshot snap = getManagedObject();
            return new VcTask(TaskType.RevertSanp, snap.revert(null, false), callback);
         }
      });
      return task;
   }
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.vim.vm.Snapshot

Copyright © 2018 www.massapicom. 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.