Search in sources :

Example 1 with MemoryImageBuilder

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);
}
Also used : Guid(org.ovirt.engine.core.compat.Guid) StatelessSnapshotMemoryImageBuilder(org.ovirt.engine.core.bll.memory.StatelessSnapshotMemoryImageBuilder) MemoryImageBuilder(org.ovirt.engine.core.bll.memory.MemoryImageBuilder) LiveSnapshotMemoryImageBuilder(org.ovirt.engine.core.bll.memory.LiveSnapshotMemoryImageBuilder) NullableMemoryImageBuilder(org.ovirt.engine.core.bll.memory.NullableMemoryImageBuilder)

Aggregations

LiveSnapshotMemoryImageBuilder (org.ovirt.engine.core.bll.memory.LiveSnapshotMemoryImageBuilder)1 MemoryImageBuilder (org.ovirt.engine.core.bll.memory.MemoryImageBuilder)1 NullableMemoryImageBuilder (org.ovirt.engine.core.bll.memory.NullableMemoryImageBuilder)1 StatelessSnapshotMemoryImageBuilder (org.ovirt.engine.core.bll.memory.StatelessSnapshotMemoryImageBuilder)1 Guid (org.ovirt.engine.core.compat.Guid)1