public abstract class VdsCommand<T extends VdsActionParameters> extends CommandBase<T>
BYTES_IN_GB
Modifier | Constructor and Description |
---|---|
protected |
VdsCommand(Guid commandId)
Constructor for command creation when compensation is applied on startup
|
|
VdsCommand(T parameters) |
Modifier and Type | Method and Description |
---|---|
protected void |
AlertIfPowerManagementNotConfigured(VdsStatic vdsStatic)
Alerts if power management not configured.
|
protected void |
AlertIfPowerManagementOperationFailed()
Alerts if power management operation failed.
|
protected void |
AlertIfPowerManagementOperationSkipped(String operation)
Alerts if power management operation skipped.
|
protected String |
getDescription() |
Map<Guid,VdcObjectType> |
getPermissionCheckSubjects()
Permissions are attached to object so every command must declare its
object target type and its GUID
|
protected void |
InitializeVds() |
protected boolean |
IsPowerManagementLegal(VdsStatic vdsStatic,
String clsuterCompatibilityVersion) |
protected void |
LogSettingVmToDown(Guid vdsId,
Guid vmId) |
protected void |
RunSleepOnReboot() |
protected void |
TestVdsPowerManagementStatus(VdsStatic vdsStatic)
Alerts if power management status failed.
|
acquireLock, addCanDoActionMessage, addCanDoActionMessage, addValidationGroup, canDoAction, CanDoActionOnly, compensate, ConcreteCreateTask, CreateReturnValue, CreateTask, EndAction, endActionInTransactionScope, EndSuccessfully, EndWithFailure, ExecuteAction, executeCommand, 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, validateInputs
AddCustomValue, 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, setVmTemplateName
getEndTime, getLegal, getTimeoutObjectId, getUseTimout, setEndTime, setTimeoutObjectId, setUseTimout
protected VdsCommand(Guid commandId)
commandId
- public VdsCommand(T parameters)
protected void InitializeVds()
protected String getDescription()
getDescription
in class CommandBase<T extends VdsActionParameters>
protected void RunSleepOnReboot()
protected void AlertIfPowerManagementNotConfigured(VdsStatic vdsStatic)
vdsStatic
- The VDS static.protected void TestVdsPowerManagementStatus(VdsStatic vdsStatic)
vdsStatic
- The VDS static.protected void AlertIfPowerManagementOperationFailed()
protected void AlertIfPowerManagementOperationSkipped(String operation)
operation
- The operation name.protected boolean IsPowerManagementLegal(VdsStatic vdsStatic, String clsuterCompatibilityVersion)
public Map<Guid,VdcObjectType> getPermissionCheckSubjects()
CommandBase
getPermissionCheckSubjects
in class CommandBase<T extends VdsActionParameters>
Copyright © 2012. All Rights Reserved.