@CustomLogFields(value=@CustomLogField(value="VmsCount")) public abstract class CommonVmPoolWithVmsCommand<T extends AddVmPoolWithVmsParameters> extends AddVmPoolCommand<T>
BYTES_IN_GB, log| Modifier | Constructor and Description |
|---|---|
protected |
CommonVmPoolWithVmsCommand(Guid commandId)
Constructor for command creation when compensation is applied on startup
|
|
CommonVmPoolWithVmsCommand(T parameters) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CanAddVmPoolWithVms(Object vmTemplateId,
ArrayList<String> reasons,
int vmsCount,
Guid storagePoolId,
Guid storageDomainId,
int vmPriority) |
protected boolean |
canDoAction() |
boolean |
CheckFreeSpaceOnDestinationDomains() |
protected void |
executeCommand()
This operation may take much time, so transactions timeout increased to 2
minutes
|
protected boolean |
getAddVmsSucceded() |
protected abstract Guid |
GetPoolId() |
NGuid |
getStorageDomainId() |
int |
getVmsCount() |
protected boolean |
isVmPoolNameValidLength(String vmPoolName)
Check if the name of the VM-Pool has valid length, meaning it's not too
long.
|
getAuditLogTypeValueCanAttacheVmToUser, CanRunPoolVm, getDescription, getPermissionCheckSubjects, GetTagsAttachedToObject, getVmPool, getVmPoolId, getVmPoolName, GetVmToAttach, IsVmFree, setVmPool, setVmPoolIdacquireLock, 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, getTaskIdList, getTransactionScopeOption, getTransactionTimeout, getValidationGroups, IsBackwardsCompatible, isInternalExecution, IsUserAutorizedToRunAction, RevertTasks, Rollback, runInTransaction, runVdsCommand, setActionMessageParameters, setActionReturnValue, setCommandShouldBeLogged, setCompensationContext, setDescription, setInternalExecution, setSucceeded, UpdateTasksWithActionParameters, validateInputsAddCustomValue, AppendCustomValue, DefaultLog, getCurrentUser, GetCustomValue, getCustomValues, getKey, getSnapshotName, getStorageDomain, getStorageDomainDAO, 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 CommonVmPoolWithVmsCommand(Guid commandId)
commandId - public CommonVmPoolWithVmsCommand(T parameters)
public int getVmsCount()
protected abstract Guid GetPoolId()
protected void executeCommand()
executeCommand in class AddVmPoolCommand<T extends AddVmPoolWithVmsParameters>public static boolean CanAddVmPoolWithVms(Object vmTemplateId, ArrayList<String> reasons, int vmsCount, Guid storagePoolId, Guid storageDomainId, int vmPriority)
protected boolean canDoAction()
canDoAction in class CommandBase<T extends AddVmPoolWithVmsParameters>public boolean CheckFreeSpaceOnDestinationDomains()
public NGuid getStorageDomainId()
getStorageDomainId in class AuditLogableBaseprotected boolean getAddVmsSucceded()
protected boolean isVmPoolNameValidLength(String vmPoolName)
vmPoolName - name of poolCopyright © 2012. All Rights Reserved.