360361362363364365366367368369370
} catch (Exception e) { logException (e, String.format ("backupVm of %s failed.", vmMoref)); } finally { vmArcMgr.unlock(); } System.out.printf("BACKUP %s %s\n", (ret ? "OK" : "NG"), vmInfo.toString()); }
406407408409410411412413414415416
} catch (Exception e) { logException (e, String.format ("restoreVm of %s failed.", targetVmMoref)); } finally { vmArcMgr.unlock(); } } /** * Execute check command.
451452453454455456457458459460461
} catch (Exception e) { logException (e, String.format ("checkGeneration of %s failed.", targetVmMoref)); } finally { vmArcMgr.unlock(); } System.out.printf("CHECK %s %s: %d\n", (isClean ? "OK" : "NG"), vmInfo.toString(),
556557558559560561562563564565566
String msg = String.format ("Clean %s failed.", targetVmMoref); logException(e, msg); System.err.println(msg); } finally { vmArcMgr.unlock(); } } System.out.printf("CLEAN %s %s.\n", vmInfo.toString(), (isSucceeded ? "succeeded" : "failed"));
689690691692693694695696697698699
} catch (Exception e) { logException (e, String.format ("Reload profile of %s failed.", vmInfo.toString())); } finally { vmArcMgr.unlock(); } } } /**