use of org.ovirt.engine.core.bll.RestartVdsVmsOperation in project ovirt-engine by oVirt.
the class StartVdsCommand method handleSpecificCommandActions.
@Override
protected void handleSpecificCommandActions() {
RestartVdsVmsOperation restartVmsOper = new RestartVdsVmsOperation(getContext(), getVds());
restartVmsOper.restartVms(getVmList());
}
use of org.ovirt.engine.core.bll.RestartVdsVmsOperation in project ovirt-engine by oVirt.
the class VdsKdumpDetectionCommand method restartVdsVms.
private void restartVdsVms() {
List<VM> vms = vmDao.getAllRunningForVds(getVdsId());
if (!vms.isEmpty()) {
RestartVdsVmsOperation restartVmsOper = new RestartVdsVmsOperation(getContext(), getVds());
restartVmsOper.restartVms(vms);
runVdsCommand(VDSCommandType.UpdateVdsVMsCleared, new UpdateVdsVMsClearedVDSCommandParameters(getVds().getId()));
}
}
use of org.ovirt.engine.core.bll.RestartVdsVmsOperation in project ovirt-engine by oVirt.
the class StopVdsCommand method handleSpecificCommandActions.
@Override
protected void handleSpecificCommandActions() {
List<VM> vmList = getVmList();
if (vmList.size() > 0) {
RestartVdsVmsOperation restartVmsOper = new RestartVdsVmsOperation(getContext(), getVds());
restartVmsOper.restartVms(vmList);
runVdsCommand(VDSCommandType.UpdateVdsVMsCleared, new UpdateVdsVMsClearedVDSCommandParameters(getVds().getId()));
}
}
Aggregations