use of org.ovirt.engine.core.common.vdscommands.SPMColdMergeVDSCommandParameters in project ovirt-engine by oVirt.
the class MergeSPMBaseCommand method executeSPMMergeCommand.
protected void executeSPMMergeCommand(VDSCommandType vdsCommandType) {
getParameters().setEntityInfo(new EntityInfo(VdcObjectType.Disk, getParameters().getSubchainInfo().getImageGroupId()));
SPMColdMergeVDSCommandParameters parameters = new SPMColdMergeVDSCommandParameters(getParameters().getStoragePoolId(), getParameters().getSubchainInfo());
VDSReturnValue vdsReturnValue = runVdsCommand(vdsCommandType, parameters);
if (vdsReturnValue.getSucceeded()) {
Guid taskId = persistAsyncTaskPlaceHolder(getParameters().getParentCommand());
getTaskIdList().add(createTask(taskId, vdsReturnValue.getCreationInfo(), getParameters().getParentCommand(), VdcObjectType.Storage, getParameters().getStorageDomainId()));
setSucceeded(true);
}
}
Aggregations