Examples of revertToSnapshot()


Examples of com.cloud.hypervisor.vmware.mo.HostMO.revertToSnapshot()

                return new RevertToVMSnapshotAnswer(cmd, false, msg);
            } else {
                boolean result = false;
                if (snapshotName != null) {
                    ManagedObjectReference morSnapshot = vmMo.getSnapshotMor(snapshotName);
                    result = hostMo.revertToSnapshot(morSnapshot);
                } else {
                    return new RevertToVMSnapshotAnswer(cmd, false, "Unable to find the snapshot by name " + snapshotName);
                }

                if (result) {
View Full Code Here

Examples of com.cloud.hypervisor.vmware.mo.HostMO.revertToSnapshot()

                boolean result = false;

                if (snapshotName != null) {
                    ManagedObjectReference morSnapshot = vmMo.getSnapshotMor(snapshotName);

                    result = hostMo.revertToSnapshot(morSnapshot);
                } else {
                    return new RevertToVMSnapshotAnswer(cmd, false, "Unable to find the snapshot by name " + snapshotName);
                }

                if (result) {
View Full Code Here

Examples of com.cloud.hypervisor.vmware.mo.HostMO.revertToSnapshot()

                return new RevertToVMSnapshotAnswer(cmd, false, msg);
            } else {
                boolean result = false;
                if (snapshotName != null) {
                    ManagedObjectReference morSnapshot = vmMo.getSnapshotMor(snapshotName);
                    result = hostMo.revertToSnapshot(morSnapshot);
                } else {
                    return new RevertToVMSnapshotAnswer(cmd, false, "Unable to find the snapshot by name " + snapshotName);
                }

                if (result) {
View Full Code Here

Examples of com.cloud.hypervisor.vmware.mo.HostMO.revertToSnapshot()

                boolean result = false;

                if (snapshotName != null) {
                    ManagedObjectReference morSnapshot = vmMo.getSnapshotMor(snapshotName);

                    result = hostMo.revertToSnapshot(morSnapshot);
                } else {
                    return new RevertToVMSnapshotAnswer(cmd, false, "Unable to find the snapshot by name " + snapshotName);
                }

                if (result) {
View Full Code Here

Examples of hudson.plugins.libvirt.lib.IDomain.revertToSnapshot()

            if (domain != null) {
              if (domain.isRunningOrBlocked()) {
                String snapshotName = slave.getSnapshotName();
                    if (snapshotName != null && snapshotName.length() > 0) {
                      taskListener.getLogger().println("Reverting to " + snapshotName + " and shutting down.");
                      domain.revertToSnapshot(domain.snapshotLookupByName(snapshotName));
                    } else {
                      taskListener.getLogger().println("Shutting down.");

                        System.err.println("method: " + slave.getShutdownMethod());
                        if (slave.getShutdownMethod().equals("suspend")) {
View Full Code Here

Examples of hudson.plugins.libvirt.lib.IDomain.revertToSnapshot()

                                    computer.disconnect(null);
                                    try {
                                        computer.waitUntilOffline();

                                        listener.getLogger().println("Reverting " + vmName + " to snapshot " + snapshotName + ".");
                                        domain.revertToSnapshot(snapshot);

                                        listener.getLogger().println("Relaunching " + vmName + ".");
                                        try {
                                            launcher.launch(slave.getComputer(), listener);
                                        } catch (IOException e) {
View Full Code Here

Examples of org.hyperic.sigar.vmware.VM.revertToSnapshot()

        }
        else if (cmd.equals("deleteSnapshot")) {
            vm.removeAllSnapshots();
        }
        else if (cmd.equals("revertToSnapshot")) {
            vm.revertToSnapshot();
        }
        else {
            throw new SigarException("Unknown ctl: " + cmd);
        }
    }
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.