Package hudson.plugins.libvirt.lib

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


                                    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

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.