Package com.cybozu.vmbkp.control

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


            } 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());
        }
View Full Code Here


        } catch (Exception e) {
            logException
                (e, String.format
                 ("restoreVm of %s failed.", targetVmMoref));
        } finally {
            vmArcMgr.unlock();
        }
    }

    /**
     * Execute check command.
View Full Code Here

            } 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(),
View Full Code Here

                    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"));
View Full Code Here

            } catch (Exception e) {
                logException
                    (e, String.format
                     ("Reload profile of %s failed.", vmInfo.toString()));
            } finally {
                vmArcMgr.unlock();
            }
        }
    }

    /**
 
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.