Package | Description |
---|---|
org.ovirt.engine.core.bll | |
org.ovirt.engine.core.bll.context | |
org.ovirt.engine.core.bll.interfaces |
Modifier and Type | Method and Description |
---|---|
protected CompensationContext |
CommandBase.getCompensationContext() |
Modifier and Type | Method and Description |
---|---|
static void |
AdGroupsHandlingOperationBase.AddAdGroupToDBWithPermissionIfNeeded(ad_groups AdGroup,
String sessionId,
CompensationContext compensationContext) |
static void |
VmHandler.checkStatusAndLockVm(Guid vmId,
CompensationContext compensationContext)
Lock VM with compensation, after checking its status, If VM status is locked, we throw an exception.
|
VdcReturnValueBase |
Backend.endAction(VdcActionType actionType,
VdcActionParametersBase parameters,
CompensationContext compensationContext) |
static void |
VmHandler.LockVm(VmDynamic vm,
CompensationContext compensationContext)
Lock the VM in a new transaction, saving compensation data of the old status.
|
static void |
VmTemplateHandler.lockVmTemplateInTransaction(Guid vmTemplateGuid,
CompensationContext compensationContext)
Lock the VM template with the given id in a new transaction, handling the compensation data using the given
CompensationContext . |
VdcReturnValueBase |
Backend.runInternalAction(VdcActionType actionType,
VdcActionParametersBase parameters,
CompensationContext context) |
void |
CommandBase.setCompensationContext(CompensationContext compensationContext) |
static void |
VmHandler.unlockVm(VmDynamic vm,
CompensationContext compensationContext)
Unlock the VM in a new transaction, saving compensation data of the old status.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultCompensationContext
Default context used to track entities that are changing during a command's execution and save the changes at each
state change to the DB.
|
class |
NoOpCompensationContext
An implementation of COmpensation Context that does nothing - will be used by commands that do not implement
compensation.
|
Modifier and Type | Method and Description |
---|---|
VdcReturnValueBase |
BackendInternal.endAction(VdcActionType actionType,
VdcActionParametersBase parameters,
CompensationContext compensationContext)
End the command with the passed compensation context, so that the calling command can compensate the internal
changes if need to.
|
VdcReturnValueBase |
BackendInternal.runInternalAction(VdcActionType actionType,
VdcActionParametersBase parameters,
CompensationContext context) |
Copyright © 2012. All Rights Reserved.