Package com.cybozu.vmbkp.control

Examples of com.cybozu.vmbkp.control.VmArchiveManager.lock()


            boolean ret = false;
            try {
                int timeoutSec = 60;
                if (backupInfo.isDryRun) {timeoutSec = 0;}
               
                vmArcMgr.lock(timeoutSec);
                vmArcMgr.reload();
                ret = backupVm(vmm, vmArcMgr, backupInfo);
               
            } catch (Exception e) {
                logException
View Full Code Here


       
        try {
            int timeoutSec = 60;
            if (restoreInfo.isDryRun) {timeoutSec = 0;}
           
            vmArcMgr.lock(timeoutSec);
            vmArcMgr.reload();
            restoreVm(vmArcMgr, restoreInfo);

        } catch (BackupFailedException e) {
            System.out.printf("The generation is marked FAILED.");
View Full Code Here

            boolean isClean = false;
            try {
                int timeoutSec = 60;
                if (checkInfo.isDryRun) {timeoutSec = 0;}
           
                vmArcMgr.lock(timeoutSec);
                vmArcMgr.reload();
                isClean = checkGeneration(vmArcMgr, checkInfo);
           
            } catch (Exception e) {
                logException
View Full Code Here

                    new VmArchiveManager(cfgGlobal_, vmInfo);
                try {
                    int timeoutSec = 1;
                    if (cleanInfo.isDryRun) { timeoutSec = 0; }

                    vmArcMgr.lock(timeoutSec);
                    vmArcMgr.reload();
                    deleteFailedGenerations(vmArcMgr, cleanInfo);
                    isSucceeded = true;

                } catch(Exception e) {
View Full Code Here

                continue;
            }

            /* Get status information from the metadata. */
            try {
                vmArcMgr.lock(0);
                vmArcMgr.reload();

                boolean isAvailable = profAllVm_.isAvailableWithMoref(vmMoref);
                System.out.println
                    (vmArcMgr.getStatusString(statusInfo, isAvailable));
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.