Search in sources :

Example 1 with ColdMergeCommandParameters

use of org.ovirt.engine.core.common.action.ColdMergeCommandParameters in project ovirt-engine by oVirt.

the class ColdMergeSnapshotSingleDiskCommand method buildColdMergeParameters.

private ColdMergeCommandParameters buildColdMergeParameters(DiskImage baseVolume, DiskImage topVolume) {
    SubchainInfo subchainInfo = new SubchainInfo(getDiskImage().getStorageIds().get(0), baseVolume, topVolume);
    ColdMergeCommandParameters parameters = new ColdMergeCommandParameters(getDiskImage().getStoragePoolId(), subchainInfo);
    parameters.setEndProcedure(ActionParametersBase.EndProcedure.COMMAND_MANAGED);
    parameters.setParentCommand(getActionType());
    parameters.setParentParameters(getParameters());
    return parameters;
}
Also used : ColdMergeCommandParameters(org.ovirt.engine.core.common.action.ColdMergeCommandParameters) SubchainInfo(org.ovirt.engine.core.common.businessentities.SubchainInfo)

Aggregations

ColdMergeCommandParameters (org.ovirt.engine.core.common.action.ColdMergeCommandParameters)1 SubchainInfo (org.ovirt.engine.core.common.businessentities.SubchainInfo)1