@CustomLogFields(value={@CustomLogField(value="VdsDestination"),@CustomLogField(value="DueToMigrationError")}) public class MigrateVmCommand<T extends MigrateVmParameters> extends RunVmCommandBase<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
forcedMigrationForNonMigratableVM |
_destinationVds, _isRerun, _vds_pending_vm_countMAX_NETWORK_INTERFACES_SUPPORTEDBYTES_IN_GB| Constructor and Description |
|---|
MigrateVmCommand(T parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canDoAction() |
protected boolean |
canMigrateVm(Guid vmGuid,
ArrayList<String> reasons) |
protected void |
determineMigrationFailueForAuditLog()
Log that the migration had failed with the error code that is in the VDS and needs to be retrieved.
|
protected void |
ExecuteVmCommand() |
protected void |
FailedToRunVm() |
AuditLogType |
getAuditLogTypeValue() |
protected Guid |
getCurrentVdsId() |
protected VDS |
getDestinationVds() |
String |
getDueToMigrationError() |
String |
getVdsDestination() |
protected Guid |
getVdsDestinationId() |
protected void |
InitVdss() |
protected void |
rerunInternal() |
protected void |
setVdsDestinationId(Guid value) |
DecreasePendingVms, DoCompressionCheck, EndVmCommand, getAutoStart, getAutoStartVdsId, getDefaultSelectionAlgorithm, getVdsSelector, hasCapacityToRunVM, hasCpuToRunVM, hasMemoryToRunVM, Rerun, RunningSucceded, setVdsSelectorCheckPCIAndIDELimit, ConcreteCreateTask, EndActionOnDisks, EndSuccessfully, EndWithFailure, executeCommand, getBlockSparseInitSizeInGB, getChildActionType, getDescription, getNeededDiskSize, getPermissionCheckSubjects, GetTagsAttachedToObject, handleCustomPropertiesError, HandleHibernatedVm, isVmNameValidLength, lockVmWithCompensationIfNeeded, RemoveVmDynamic, RemoveVmInSpm, RemoveVmInSpm, RemoveVmNetwork, RemoveVmStatic, RemoveVmStatistics, RemoveVmUsers, UpdateVmInSpm, UpdateVmInSpm, validateNumberOfNicsacquireLock, 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, 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, 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, setUseTimoutpublic MigrateVmCommand(T parameters)
public String getVdsDestination()
public String getDueToMigrationError()
protected VDS getDestinationVds()
getDestinationVds in class RunVmCommandBase<T extends MigrateVmParameters>protected void FailedToRunVm()
FailedToRunVm in class RunVmCommandBase<T extends MigrateVmParameters>protected void InitVdss()
protected void ExecuteVmCommand()
ExecuteVmCommand in class VmCommand<T extends MigrateVmParameters>public AuditLogType getAuditLogTypeValue()
getAuditLogTypeValue in class AuditLogableBaseprotected Guid getVdsDestinationId()
protected void setVdsDestinationId(Guid value)
protected boolean canDoAction()
canDoAction in class CommandBase<T extends MigrateVmParameters>protected void rerunInternal()
rerunInternal in class RunVmCommandBase<T extends MigrateVmParameters>protected void determineMigrationFailueForAuditLog()
protected Guid getCurrentVdsId()
getCurrentVdsId in class RunVmCommandBase<T extends MigrateVmParameters>Copyright © 2012. All Rights Reserved.