public class AddVmFromScratchCommand<T extends AddVmFromScratchParameters> extends AddVmCommand<T>
_vmDisks, _vmInterfaces, newMac
MAX_NETWORK_INTERFACES_SUPPORTED
BYTES_IN_GB
Modifier | Constructor and Description |
---|---|
protected |
AddVmFromScratchCommand(Guid commandId) |
|
AddVmFromScratchCommand(T parameters) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AddVmImages() |
protected boolean |
canDoAction() |
protected boolean |
ConcreteAddVmImages(Guid itGuid) |
protected VdcActionType |
getChildActionType() |
Map<Guid,VdcObjectType> |
getPermissionCheckSubjects()
Permissions are attached to object so every command must declare its
object target type and its GUID
|
NGuid |
getStorageDomainId() |
protected List<DiskImageBase> |
getVmDisks() |
AddVmNetwork, addVmPermission, AddVmStatic, areParametersLegal, CanAddVm, CanAddVm, CanDoAddVmCommand, CheckCpuSockets, EndWithFailure, ExecuteVmCommand, getAuditLogTypeValue, getValidationGroups, getVmInterfaces, getVmSnapshotId, hostToRunExist, IsLegalClusterId, SelectStorageDomain, setActionMessageParameters
isDedicatedVdsOnSameCluster
CheckPCIAndIDELimit, ConcreteCreateTask, EndActionOnDisks, EndSuccessfully, EndVmCommand, executeCommand, getBlockSparseInitSizeInGB, getDescription, getNeededDiskSize, GetTagsAttachedToObject, handleCustomPropertiesError, HandleHibernatedVm, isVmNameValidLength, lockVmWithCompensationIfNeeded, RemoveVmDynamic, RemoveVmInSpm, RemoveVmInSpm, RemoveVmNetwork, RemoveVmStatic, RemoveVmStatistics, RemoveVmUsers, UpdateVmInSpm, UpdateVmInSpm, validateNumberOfNics
acquireLock, addCanDoActionMessage, addCanDoActionMessage, addValidationGroup, CanDoActionOnly, compensate, CreateReturnValue, CreateTask, EndAction, endActionInTransactionScope, ExecuteAction, freeLock, getActionReturnValue, getActionState, getActionType, getBusinessEntitySnapshotDAO, getCommandShouldBeLogged, getCompensationContext, getNow, getObjectLockingId, getParameters, getParametersForTask, getReturnValue, getSucceeded, getTaskIdList, getTransactionScopeOption, getTransactionTimeout, IsBackwardsCompatible, isInternalExecution, IsUserAutorizedToRunAction, RevertTasks, Rollback, runInTransaction, runVdsCommand, setActionReturnValue, setCommandShouldBeLogged, setCompensationContext, setDescription, setInternalExecution, setSucceeded, UpdateTasksWithActionParameters, validateInputs
AddCustomValue, 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, setVmTemplateName
getEndTime, getLegal, getTimeoutObjectId, getUseTimout, setEndTime, setTimeoutObjectId, setUseTimout
public AddVmFromScratchCommand(T parameters)
protected AddVmFromScratchCommand(Guid commandId)
public NGuid getStorageDomainId()
getStorageDomainId
in class AddVmCommand<T extends AddVmFromScratchParameters>
protected boolean AddVmImages()
AddVmImages
in class AddVmCommand<T extends AddVmFromScratchParameters>
protected boolean ConcreteAddVmImages(Guid itGuid)
protected boolean canDoAction()
canDoAction
in class AddVmCommand<T extends AddVmFromScratchParameters>
protected List<DiskImageBase> getVmDisks()
getVmDisks
in class AddVmCommand<T extends AddVmFromScratchParameters>
protected VdcActionType getChildActionType()
getChildActionType
in class AddVmCommand<T extends AddVmFromScratchParameters>
public Map<Guid,VdcObjectType> getPermissionCheckSubjects()
CommandBase
getPermissionCheckSubjects
in class AddVmCommand<T extends AddVmFromScratchParameters>
Copyright © 2012. All Rights Reserved.