Package hudson.plugins.libvirt.lib

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


            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


                IDomain domain = domains.get(vmName);
                if (domain != null) {
                    listener.getLogger().println("Preparing to revert " + vmName + " to snapshot " + snapshotName + ".");

                    try {
                        IDomainSnapshot snapshot = domain.snapshotLookupByName(snapshotName);
                        try {
                            Computer computer = slave.getComputer();
                            try {
                                computer.getChannel().syncLocalIO();
                                try {
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.