Search in sources :

Example 1 with SPMColdMergeVDSCommandParameters

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);
    }
}
Also used : EntityInfo(org.ovirt.engine.core.common.asynctasks.EntityInfo) SPMColdMergeVDSCommandParameters(org.ovirt.engine.core.common.vdscommands.SPMColdMergeVDSCommandParameters) Guid(org.ovirt.engine.core.compat.Guid) VDSReturnValue(org.ovirt.engine.core.common.vdscommands.VDSReturnValue)

Aggregations

EntityInfo (org.ovirt.engine.core.common.asynctasks.EntityInfo)1 SPMColdMergeVDSCommandParameters (org.ovirt.engine.core.common.vdscommands.SPMColdMergeVDSCommandParameters)1 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)1 Guid (org.ovirt.engine.core.compat.Guid)1