use of org.ovirt.engine.core.bll.memory.MemoryImageBuilder in project ovirt-engine by oVirt.
the class CreateSnapshotForVmCommand method executeVmCommand.
@Override
protected void executeVmCommand() {
Guid createdSnapshotId = updateActiveSnapshotId();
setActionReturnValue(createdSnapshotId);
getParameters().setCreatedSnapshotId(createdSnapshotId);
MemoryImageBuilder memoryImageBuilder = getMemoryImageBuilder();
freezeVm();
createSnapshotsForDisks();
memoryImageBuilder.build();
addSnapshotToDB(createdSnapshotId, memoryImageBuilder);
fastForwardDisksToActiveSnapshot();
setSucceeded(true);
}
Aggregations