public abstract class FenceVdsBaseCommand<T extends FenceVdsActionParameters> extends VdsCommand<T>
| Modifier and Type | Field and Description |
|---|---|
protected FencingExecutor |
_executor |
protected List<VM> |
mVmList |
BYTES_IN_GB| Modifier | Constructor and Description |
|---|---|
protected |
FenceVdsBaseCommand(Guid commandId)
Constructor for command creation when compensation is applied on startup
|
|
FenceVdsBaseCommand(T parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canDoAction() |
protected FencingExecutor |
createExecutorForProxyCheck()
Create the executor used in the can do action check.
|
protected void |
DestroyVmOnDestination(VM vm) |
protected void |
executeCommand() |
protected abstract int |
getDelayInSeconds()
Gets the number of seconds to delay between each retry.
|
protected boolean |
getFencingSucceeded() |
protected abstract int |
getRerties()
Gets the number of times to retry a get status PM operation after stop/start PM operation.
|
protected void |
HandleError() |
protected abstract void |
handleSpecificCommandActions() |
protected void |
RestartVdsVms() |
protected void |
setFencingSucceeded(boolean value) |
protected void |
setStatus() |
protected void |
setStatus(VDSStatus status) |
protected boolean |
waitForStatus(String vdsName,
FenceActionType actionType) |
AlertIfPowerManagementNotConfigured, AlertIfPowerManagementOperationFailed, AlertIfPowerManagementOperationSkipped, getDescription, getPermissionCheckSubjects, InitializeVds, IsPowerManagementLegal, LogSettingVmToDown, RunSleepOnReboot, TestVdsPowerManagementStatusacquireLock, addCanDoActionMessage, addCanDoActionMessage, addValidationGroup, CanDoActionOnly, compensate, ConcreteCreateTask, CreateReturnValue, CreateTask, EndAction, endActionInTransactionScope, EndSuccessfully, EndWithFailure, ExecuteAction, freeLock, getActionReturnValue, getActionState, getActionType, getBusinessEntitySnapshotDAO, getCommandShouldBeLogged, getCompensationContext, getNow, getObjectLockingId, getParameters, getParametersForTask, getReturnValue, getSucceeded, GetTagsAttachedToObject, getTaskIdList, getTransactionScopeOption, getTransactionTimeout, getValidationGroups, IsBackwardsCompatible, isInternalExecution, IsUserAutorizedToRunAction, RevertTasks, Rollback, runInTransaction, runVdsCommand, setActionMessageParameters, setActionReturnValue, setCommandShouldBeLogged, setCompensationContext, setDescription, setInternalExecution, setSucceeded, UpdateTasksWithActionParameters, validateInputsAddCustomValue, AppendCustomValue, DefaultLog, getAuditLogTypeValue, getCurrentUser, GetCustomValue, getCustomValues, getKey, getSnapshotName, getStorageDomain, getStorageDomainDAO, getStorageDomainId, getStorageDomainName, getStoragePool, getStoragePoolDAO, getStoragePoolId, getStoragePoolName, getUserId, getUserName, getVds, getVdsDAO, getVdsGroup, getVdsGroupDAO, getVdsGroupId, getVdsGroupName, getVdsId, getVdsIdRef, getVdsName, getVm, getVmDAO, getVmId, getVmIdRef, getVmName, getVmStaticDAO, getVmStatisticsDAO, getVmTemplate, getVmTemplateDAO, getVmTemplateId, getVmTemplateIdRef, getVmTemplateName, log, setCurrentUser, setSnapshotName, setStorageDomain, setStorageDomainId, setStoragePool, setStoragePoolId, setUserId, setUserName, setVds, setVdsGroup, setVdsGroupId, setVdsId, setVdsIdRef, setVdsName, setVm, setVmId, setVmName, setVmTemplate, setVmTemplateId, setVmTemplateNamegetEndTime, getLegal, getTimeoutObjectId, getUseTimout, setEndTime, setTimeoutObjectId, setUseTimoutprotected FencingExecutor _executor
protected FenceVdsBaseCommand(Guid commandId)
commandId - public FenceVdsBaseCommand(T parameters)
protected abstract int getRerties()
protected abstract int getDelayInSeconds()
protected boolean getFencingSucceeded()
protected void setFencingSucceeded(boolean value)
protected boolean canDoAction()
canDoAction in class CommandBase<T extends FenceVdsActionParameters>protected void executeCommand()
executeCommand in class CommandBase<T extends FenceVdsActionParameters>protected FencingExecutor createExecutorForProxyCheck()
protected void DestroyVmOnDestination(VM vm)
protected void RestartVdsVms()
protected void setStatus()
protected void HandleError()
protected boolean waitForStatus(String vdsName, FenceActionType actionType)
protected void setStatus(VDSStatus status)
protected abstract void handleSpecificCommandActions()
Copyright © 2012. All Rights Reserved.