public class RestartVdsCommand<T extends FenceVdsActionParameters> extends FenceVdsBaseCommand<T>
_executor, mVmList
BYTES_IN_GB
Modifier | Constructor and Description |
---|---|
protected |
RestartVdsCommand(Guid commandId)
Constructor for command creation when compensation is applied on startup
|
|
RestartVdsCommand(T parameters) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeCommand()
Restart action is implemented by issuing stop followed by start
|
AuditLogType |
getAuditLogTypeValue() |
protected int |
getDelayInSeconds()
Gets the number of seconds to delay between each retry.
|
protected int |
getRerties()
Gets the number of times to retry a get status PM operation after stop/start PM operation.
|
protected List<VM> |
getVmList() |
protected void |
HandleError() |
protected void |
handleSpecificCommandActions() |
void |
Rollback()
If failed to restart the host, move its status to NonResponsive
|
canDoAction, createExecutorForProxyCheck, DestroyVmOnDestination, getFencingSucceeded, RestartVdsVms, setFencingSucceeded, setStatus, setStatus, waitForStatus
AlertIfPowerManagementNotConfigured, AlertIfPowerManagementOperationFailed, AlertIfPowerManagementOperationSkipped, getDescription, getPermissionCheckSubjects, InitializeVds, IsPowerManagementLegal, LogSettingVmToDown, RunSleepOnReboot, TestVdsPowerManagementStatus
acquireLock, 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, runInTransaction, runVdsCommand, setActionMessageParameters, setActionReturnValue, setCommandShouldBeLogged, setCompensationContext, setDescription, setInternalExecution, setSucceeded, UpdateTasksWithActionParameters, validateInputs
AddCustomValue, AppendCustomValue, DefaultLog, 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, setVmTemplateName
getEndTime, getLegal, getTimeoutObjectId, getUseTimout, setEndTime, setTimeoutObjectId, setUseTimout
protected RestartVdsCommand(Guid commandId)
commandId
- public RestartVdsCommand(T parameters)
protected void executeCommand()
executeCommand
in class FenceVdsBaseCommand<T extends FenceVdsActionParameters>
public void Rollback()
Rollback
in interface RollbackHandler
Rollback
in class CommandBase<T extends FenceVdsActionParameters>
protected void HandleError()
HandleError
in class FenceVdsBaseCommand<T extends FenceVdsActionParameters>
public AuditLogType getAuditLogTypeValue()
getAuditLogTypeValue
in class AuditLogableBase
protected int getRerties()
FenceVdsBaseCommand
getRerties
in class FenceVdsBaseCommand<T extends FenceVdsActionParameters>
protected int getDelayInSeconds()
FenceVdsBaseCommand
getDelayInSeconds
in class FenceVdsBaseCommand<T extends FenceVdsActionParameters>
protected void handleSpecificCommandActions()
handleSpecificCommandActions
in class FenceVdsBaseCommand<T extends FenceVdsActionParameters>
Copyright © 2012. All Rights Reserved.