Search in sources :

Example 1 with ResumeVDSCommandParameters

use of org.ovirt.engine.core.common.vdscommands.ResumeVDSCommandParameters in project ovirt-engine by oVirt.

the class RunVmCommand method resumeVm.

private void resumeVm() {
    setVdsId(getVm().getRunOnVds());
    if (getVds() != null) {
        try {
            VDSReturnValue result = getVdsBroker().runAsyncVdsCommand(VDSCommandType.Resume, new ResumeVDSCommandParameters(getVdsId(), getVm().getId()), this);
            setActionReturnValue(result.getReturnValue());
            setSucceeded(result.getSucceeded());
            ExecutionHandler.setAsyncJob(getExecutionContext(), true);
        } finally {
            freeLock();
        }
    } else {
        setActionReturnValue(getVm().getStatus());
    }
}
Also used : ResumeVDSCommandParameters(org.ovirt.engine.core.common.vdscommands.ResumeVDSCommandParameters) VDSReturnValue(org.ovirt.engine.core.common.vdscommands.VDSReturnValue)

Aggregations

ResumeVDSCommandParameters (org.ovirt.engine.core.common.vdscommands.ResumeVDSCommandParameters)1 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)1