351352353354355356357358359360361
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
394395396397398399400401402403404
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.");
442443444445446447448449450451452
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
545546547548549550551552553554555
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) {
673674675676677678679680681682683
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));