@CustomLogFields(value=@CustomLogField(value="VmPoolName")) public abstract class VmPoolCommandBase<T extends VmPoolParametersBase> extends CommandBase<T>
BYTES_IN_GB, log
Modifier | Constructor and Description |
---|---|
protected |
VmPoolCommandBase(Guid commandId)
Constructor for command creation when compensation is applied on startup
|
|
VmPoolCommandBase(T parameters) |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
CanAttacheVmToUser(Guid vm_guid)
Checks if a VM can be attached to a user.
|
protected static boolean |
CanRunPoolVm(Guid vmId,
ArrayList<String> messages) |
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 List<tags> |
GetTagsAttachedToObject() |
protected vm_pools |
getVmPool() |
protected NGuid |
getVmPoolId() |
String |
getVmPoolName() |
static Guid |
GetVmToAttach(NGuid poolId) |
protected static boolean |
IsVmFree(Guid vmId,
ArrayList<String> messages)
Check if specific vm free.
|
protected void |
setVmPool(vm_pools value) |
protected void |
setVmPoolId(NGuid value) |
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, 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 VmPoolCommandBase(Guid commandId)
commandId
- public VmPoolCommandBase(T parameters)
protected vm_pools getVmPool()
protected void setVmPool(vm_pools value)
protected NGuid getVmPoolId()
protected void setVmPoolId(NGuid value)
public String getVmPoolName()
protected String getDescription()
getDescription
in class CommandBase<T extends VmPoolParametersBase>
protected static boolean CanAttacheVmToUser(Guid vm_guid)
vm_guid
- the VM GUID to check.protected static boolean IsVmFree(Guid vmId, ArrayList<String> messages)
vmId
- The vm id.messages
- The messages.protected List<tags> GetTagsAttachedToObject()
GetTagsAttachedToObject
in class CommandBase<T extends VmPoolParametersBase>
public Map<Guid,VdcObjectType> getPermissionCheckSubjects()
CommandBase
getPermissionCheckSubjects
in class CommandBase<T extends VmPoolParametersBase>
Copyright © 2012. All Rights Reserved.