public abstract class RunVmCommandBase<T extends VmOperationParameterBase> extends VmCommand<T> implements IVdsAsyncCommand
| Modifier and Type | Field and Description |
|---|---|
protected VDS |
_destinationVds |
protected boolean |
_isRerun |
protected static HashMap<Guid,Integer> |
_vds_pending_vm_count |
MAX_NETWORK_INTERFACES_SUPPORTEDBYTES_IN_GB| Modifier | Constructor and Description |
|---|---|
protected |
RunVmCommandBase(Guid commandId) |
|
RunVmCommandBase(T parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DecreasePendingVms(Guid vdsId) |
static void |
DoCompressionCheck(VDS vds,
VmDynamic vm) |
protected void |
EndVmCommand() |
protected void |
FailedToRunVm() |
boolean |
getAutoStart() |
Guid |
getAutoStartVdsId() |
protected Guid |
getCurrentVdsId() |
static VdsSelectionAlgorithm |
getDefaultSelectionAlgorithm() |
protected abstract VDS |
getDestinationVds() |
protected VdsSelector |
getVdsSelector() |
static boolean |
hasCapacityToRunVM(VDS curVds) |
static boolean |
hasCpuToRunVM(VDS vds,
VM vm)
Check if the given host has enough CPU to run the VM, without exceeding the high utilization threshold.
|
static boolean |
hasMemoryToRunVM(VDS curVds,
VM vm) |
void |
Rerun()
This function called when vds failed to run vm.
|
protected void |
rerunInternal() |
void |
RunningSucceded()
Asyncronious event, send by vds on running vm success.
|
protected void |
setVdsSelector(VdsSelector value) |
CheckPCIAndIDELimit, ConcreteCreateTask, EndActionOnDisks, EndSuccessfully, EndWithFailure, executeCommand, ExecuteVmCommand, getBlockSparseInitSizeInGB, getChildActionType, getDescription, getNeededDiskSize, getPermissionCheckSubjects, GetTagsAttachedToObject, handleCustomPropertiesError, HandleHibernatedVm, isVmNameValidLength, lockVmWithCompensationIfNeeded, RemoveVmDynamic, RemoveVmInSpm, RemoveVmInSpm, RemoveVmNetwork, RemoveVmStatic, RemoveVmStatistics, RemoveVmUsers, UpdateVmInSpm, UpdateVmInSpm, validateNumberOfNicsacquireLock, addCanDoActionMessage, addCanDoActionMessage, addValidationGroup, canDoAction, CanDoActionOnly, compensate, CreateReturnValue, CreateTask, EndAction, endActionInTransactionScope, 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, 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, setVmTemplateNamegetEndTime, getLegal, getTimeoutObjectId, getUseTimout, setEndTime, setTimeoutObjectId, setUseTimoutprotected boolean _isRerun
protected VDS _destinationVds
protected RunVmCommandBase(Guid commandId)
public RunVmCommandBase(T parameters)
protected VdsSelector getVdsSelector()
protected void setVdsSelector(VdsSelector value)
public static VdsSelectionAlgorithm getDefaultSelectionAlgorithm()
public static boolean hasCpuToRunVM(VDS vds, VM vm)
vds - The host to check.vm - The VM to check.public static boolean hasCapacityToRunVM(VDS curVds)
public final void Rerun()
Rerun in interface IVdsAsyncCommandprotected void rerunInternal()
protected void FailedToRunVm()
public void RunningSucceded()
RunningSucceded in interface IVdsAsyncCommandprotected void EndVmCommand()
EndVmCommand in class VmCommand<T extends VmOperationParameterBase>protected Guid getCurrentVdsId()
public boolean getAutoStart()
getAutoStart in interface IVdsAsyncCommandpublic Guid getAutoStartVdsId()
getAutoStartVdsId in interface IVdsAsyncCommandprotected abstract VDS getDestinationVds()
protected void DecreasePendingVms(Guid vdsId)
Copyright © 2012. All Rights Reserved.