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());
}
}
Aggregations