Examples of revertVMSnapshot()


Examples of org.apache.cloudstack.engine.subsystem.api.storage.VMSnapshotStrategy.revertVMSnapshot()

            throw new InvalidParameterValueException("There is other active vm snapshot tasks on the instance, please try again later");
        }

        try {
            VMSnapshotStrategy strategy = findVMSnapshotStrategy(vmSnapshotVo);
            strategy.revertVMSnapshot(vmSnapshotVo);
            return userVm;
        } catch (Exception e) {
            s_logger.debug("Failed to revert vmsnapshot: " + vmSnapshotId, e);
            return null;
        }
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.VMSnapshotStrategy.revertVMSnapshot()

                if(vmSnapshotVO.getState() == VMSnapshot.State.Expunging){
                    return strategy.deleteVMSnapshot(vmSnapshotVO);
                }else if(vmSnapshotVO.getState() == VMSnapshot.State.Creating){
                    return strategy.takeVMSnapshot(vmSnapshotVO) != null;
                }else if(vmSnapshotVO.getState() == VMSnapshot.State.Reverting){
                    return strategy.revertVMSnapshot(vmSnapshotVO);
                }
            }
        }catch (Exception e) {
            s_logger.error(e.getMessage(),e);
            if(_vmSnapshotDao.listByInstanceId(vm.getId(), VMSnapshot.State.Expunging).size() == 0)
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.VMSnapshotStrategy.revertVMSnapshot()

            throw new InvalidParameterValueException("There is other active vm snapshot tasks on the instance, please try again later");
        }

        try {
            VMSnapshotStrategy strategy = findVMSnapshotStrategy(vmSnapshotVo);
            strategy.revertVMSnapshot(vmSnapshotVo);
            return userVm;
        } catch (Exception e) {
            s_logger.debug("Failed to revert vmsnapshot: " + vmSnapshotId, e);
            return null;
        }
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.VMSnapshotStrategy.revertVMSnapshot()

                if (vmSnapshotVO.getState() == VMSnapshot.State.Expunging) {
                    return strategy.deleteVMSnapshot(vmSnapshotVO);
                } else if (vmSnapshotVO.getState() == VMSnapshot.State.Creating) {
                    return strategy.takeVMSnapshot(vmSnapshotVO) != null;
                } else if (vmSnapshotVO.getState() == VMSnapshot.State.Reverting) {
                    return strategy.revertVMSnapshot(vmSnapshotVO);
                }
            }
        } catch (Exception e) {
            s_logger.error(e.getMessage(), e);
            if (_vmSnapshotDao.listByInstanceId(vm.getId(), VMSnapshot.State.Expunging).size() == 0)
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.VMSnapshotStrategy.revertVMSnapshot()

            throw new InvalidParameterValueException("There is other active vm snapshot tasks on the instance, please try again later");
        }

        try {
            VMSnapshotStrategy strategy = findVMSnapshotStrategy(vmSnapshotVo);
            strategy.revertVMSnapshot(vmSnapshotVo);
            return userVm;
        } catch (Exception e) {
            s_logger.debug("Failed to revert vmsnapshot: " + vmSnapshotId, e);
            return null;
        }
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.VMSnapshotStrategy.revertVMSnapshot()

                if(vmSnapshotVO.getState() == VMSnapshot.State.Expunging){
                    return strategy.deleteVMSnapshot(vmSnapshotVO);
                }else if(vmSnapshotVO.getState() == VMSnapshot.State.Creating){
                    return strategy.takeVMSnapshot(vmSnapshotVO) != null;
                }else if(vmSnapshotVO.getState() == VMSnapshot.State.Reverting){
                    return strategy.revertVMSnapshot(vmSnapshotVO);
                }
            }
        }catch (Exception e) {
            s_logger.error(e.getMessage(),e);
            if(_vmSnapshotDao.listByInstanceId(vm.getId(), VMSnapshot.State.Expunging).size() == 0)
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.