use of org.ovirt.engine.core.common.action.CreateOvfVolumeForStorageDomainCommandParameters in project ovirt-engine by oVirt.
the class ProcessOvfUpdateForStorageDomainCommand method createOvfStoreDisks.
public boolean createOvfStoreDisks(int missingDiskCount) {
boolean allOvfStoreDisksCreated = true;
for (int i = 0; i < missingDiskCount; i++) {
CreateOvfVolumeForStorageDomainCommandParameters parameters = createCreateOvfVolumeForStorageDomainParams();
ActionReturnValue returnValue = runInternalAction(ActionType.CreateOvfVolumeForStorageDomain, parameters, getContext().clone().withoutLock());
if (!returnValue.getSucceeded()) {
allOvfStoreDisksCreated = false;
}
}
return allOvfStoreDisksCreated;
}
use of org.ovirt.engine.core.common.action.CreateOvfVolumeForStorageDomainCommandParameters in project ovirt-engine by oVirt.
the class ProcessOvfUpdateForStorageDomainCommand method createCreateOvfVolumeForStorageDomainParams.
public CreateOvfVolumeForStorageDomainCommandParameters createCreateOvfVolumeForStorageDomainParams() {
CreateOvfVolumeForStorageDomainCommandParameters parameters = new CreateOvfVolumeForStorageDomainCommandParameters(getParameters().getStoragePoolId(), getParameters().getStorageDomainId());
parameters.setSkipDomainChecks(getParameters().isSkipDomainChecks());
parameters.setParentCommand(getActionType());
parameters.setParentParameters(getParameters());
parameters.setEndProcedure(EndProcedure.COMMAND_MANAGED);
return parameters;
}
Aggregations