public class VirtualMachine extends ManagedEntity
| Constructor and Description |
|---|
VirtualMachine(ServerConnection sc,
ManagedObjectReference mor) |
destroy_Task, getAlarmActionEabled, getConfigIssue, getConfigStatus, getCustomValue, getDeclaredAlarmState, getDisabledMethod, getEffectiveRole, getName, getOverallStatus, getParent, getPermission, getRecentTasks, getTag, getTriggeredAlarmState, reload, rename_TaskgetAvailableField, getValues, setCustomValueconvertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setMOR, setServerConnection, toString, waitForValuespublic VirtualMachine(ServerConnection sc, ManagedObjectReference mor)
public VirtualMachineCapability getCapability()
public VirtualMachineConfigInfo getConfig()
public Datastore[] getDatastores() throws InvalidProperty, RuntimeFault, RemoteException
public EnvironmentBrowser getEnvironmentBrowser() throws InvalidProperty, RuntimeFault, RemoteException
public GuestInfo getGuest()
public ManagedEntityStatus getGuestHeartbeatStatus()
public VirtualMachineFileLayout getLayout()
public VirtualMachineFileLayoutEx getLayoutEx()
public VirtualMachineStorageInfo getStorage()
public Network[] getNetworks() throws InvalidProperty, RuntimeFault, RemoteException
public ManagedEntity getParentVApp()
public ResourceConfigSpec getResourceConfig()
public ResourcePool getResourcePool() throws InvalidProperty, RuntimeFault, RemoteException
public VirtualMachineSnapshot[] getRootSnapshot()
public VirtualMachineRuntimeInfo getRuntime()
public VirtualMachineSnapshotInfo getSnapshot()
public VirtualMachineSnapshot getCurrentSnapShot() throws InvalidProperty, RuntimeFault, RemoteException
public VirtualMachineSummary getSummary()
public VirtualMachineMksTicket acquireMksTicket() throws RuntimeFault, RemoteException
RuntimeFaultRemoteExceptionpublic VirtualMachineTicket acquireTicket(String ticketType) throws InvalidState, RuntimeFault, RemoteException
InvalidStateRuntimeFaultRemoteExceptionpublic void answerVM(String questionId, String answerChoice) throws ConcurrentAccess, RuntimeFault, RemoteException
public void checkCustomizationSpec(CustomizationSpec spec) throws CustomizationFault, RuntimeFault, RemoteException
public Task cloneVM_Task(Folder folder, String name, VirtualMachineCloneSpec spec) throws VmConfigFault, TaskInProgress, CustomizationFault, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, InvalidDatastore, RuntimeFault, RemoteException
public Task consolidateVMDisks_Task() throws TaskInProgress, InvalidState, FileFault, VmConfigFault, RuntimeFault, RemoteException
TaskInProgressInvalidStateFileFaultVmConfigFaultRuntimeFaultRemoteExceptionpublic Task CreateScreenshot_Task() throws TaskInProgress, FileFault, InvalidState, RuntimeFault, RemoteException
TaskInProgressFileFaultInvalidStateRuntimeFaultRemoteExceptionpublic Task createSnapshot_Task(String name, String description, boolean memory, boolean quiesce) throws InvalidName, VmConfigFault, SnapshotFault, TaskInProgress, FileFault, InvalidState, RuntimeFault, RemoteException
public Task createSecondaryVM_Task(HostSystem host) throws TaskInProgress, InvalidState, InsufficientResourcesFault, VmFaultToleranceIssue, FileFault, VmConfigFault, RuntimeFault, RemoteException
public Task disableSecondaryVM_Task(VirtualMachine vm) throws TaskInProgress, VmFaultToleranceIssue, InvalidState, RuntimeFault, RemoteException
TaskInProgressVmFaultToleranceIssueInvalidStateRuntimeFaultRemoteExceptionpublic Task enableSecondaryVM_Task(VirtualMachine vm, HostSystem host) throws TaskInProgress, VmFaultToleranceIssue, InvalidState, VmConfigFault, RuntimeFault, RemoteException
TaskInProgressVmFaultToleranceIssueInvalidStateVmConfigFaultRuntimeFaultRemoteExceptionpublic Task estimateStorageForConsolidateSnapshots_Task() throws TaskInProgress, InvalidState, FileFault, VmConfigFault, RuntimeFault, RemoteException
TaskInProgressInvalidStateFileFaultVmConfigFaultRuntimeFaultRemoteExceptionpublic HttpNfcLease exportVm() throws InvalidPowerState, TaskInProgress, InvalidState, FileFault, RuntimeFault, RemoteException
InvalidPowerStateTaskInProgressInvalidStateFileFaultRuntimeFaultRemoteExceptionpublic String extractOvfEnvironment() throws InvalidState, RuntimeFault, RemoteException
InvalidStateRuntimeFaultRemoteExceptionpublic Task makePrimaryVM_Task(VirtualMachine vm) throws TaskInProgress, VmFaultToleranceIssue, InvalidState, RuntimeFault, RemoteException
TaskInProgressVmFaultToleranceIssueInvalidStateRuntimeFaultRemoteExceptionpublic Task customizeVM_Task(CustomizationSpec spec) throws CustomizationFault, RuntimeFault, RemoteException
public void defragmentAllDisks()
throws InvalidPowerState,
TaskInProgress,
FileFault,
InvalidState,
RuntimeFault,
RemoteException
public void markAsTemplate()
throws VmConfigFault,
InvalidState,
RuntimeFault,
RemoteException
public void markAsVirtualMachine(ResourcePool pool, HostSystem host) throws VmConfigFault, FileFault, InvalidState, InvalidDatastore, RuntimeFault, RemoteException
public Task migrateVM_Task(ResourcePool pool, HostSystem host, VirtualMachineMovePriority priority, VirtualMachinePowerState state) throws VmConfigFault, Timedout, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, RuntimeFault, RemoteException
public void mountToolsInstaller()
throws InvalidState,
RuntimeFault,
RemoteException
InvalidStateRuntimeFaultRemoteExceptionpublic Task powerOffVM_Task() throws TaskInProgress, InvalidState, RuntimeFault, RemoteException
public Task powerOnVM_Task(HostSystem host) throws VmConfigFault, TaskInProgress, FileFault, InvalidState, InsufficientResourcesFault, RuntimeFault, RemoteException
public Task promoteDisks_Task(boolean unlink, VirtualDisk[] disks) throws InvalidPowerState, InvalidState, TaskInProgress, RuntimeFault, RemoteException
InvalidPowerStateInvalidStateTaskInProgressRuntimeFaultRemoteExceptionpublic DiskChangeInfo queryChangedDiskAreas(VirtualMachineSnapshot snapshot, int deviceKey, long startOffset, String changeId) throws FileFault, NotFound, RuntimeFault, RemoteException
FileFaultNotFoundRuntimeFaultRemoteExceptionpublic LocalizedMethodFault[] queryFaultToleranceCompatibility() throws InvalidState, VmConfigFault, RuntimeFault, RemoteException
InvalidStateVmConfigFaultRuntimeFaultRemoteExceptionpublic String[] queryUnownedFiles() throws RuntimeFault, RemoteException
RuntimeFaultRemoteExceptionpublic void rebootGuest()
throws TaskInProgress,
InvalidState,
ToolsUnavailable,
RuntimeFault,
RemoteException
public Task reconfigVM_Task(VirtualMachineConfigSpec spec) throws InvalidName, VmConfigFault, DuplicateName, TaskInProgress, FileFault, InvalidState, ConcurrentAccess, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException
public Task reloadVirtualMachineFromPath_Task(String configurationPath) throws InvalidPowerState, TaskInProgress, FileFault, InvalidState, VmConfigFault, AlreadyExists, RuntimeFault, RemoteException
InvalidPowerStateTaskInProgressFileFaultInvalidStateVmConfigFaultAlreadyExistsRuntimeFaultRemoteExceptionpublic void refreshStorageInfo()
throws RuntimeFault,
RemoteException
RuntimeFaultRemoteExceptionpublic Task relocateVM_Task(VirtualMachineRelocateSpec spec) throws VmConfigFault, Timedout, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, InvalidDatastore, RuntimeFault, RemoteException
public Task relocateVM_Task(VirtualMachineRelocateSpec spec, VirtualMachineMovePriority priority) throws VmConfigFault, Timedout, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, InvalidDatastore, RuntimeFault, RemoteException
public Task removeAllSnapshots_Task() throws SnapshotFault, TaskInProgress, InvalidState, RuntimeFault, RemoteException
public Task removeAllSnapshots_Task(Boolean consolidate) throws SnapshotFault, TaskInProgress, InvalidState, RuntimeFault, RemoteException
public void resetGuestInformation()
throws InvalidState,
RuntimeFault,
RemoteException
InvalidStateRuntimeFaultRemoteExceptionpublic Task resetVM_Task() throws TaskInProgress, InvalidState, RuntimeFault, RemoteException
public Task revertToCurrentSnapshot_Task(HostSystem host) throws VmConfigFault, SnapshotFault, TaskInProgress, InvalidState, InsufficientResourcesFault, NotFound, RuntimeFault, RemoteException
public Task revertToCurrentSnapshot_Task(HostSystem host, Boolean suppressPowerOn) throws VmConfigFault, SnapshotFault, TaskInProgress, InvalidState, InsufficientResourcesFault, NotFound, RuntimeFault, RemoteException
public void setDisplayTopology(VirtualMachineDisplayTopology[] displays) throws InvalidState, ToolsUnavailable, RuntimeFault, RemoteException
InvalidStateToolsUnavailableRuntimeFaultRemoteExceptionpublic void setScreenResolution(int width,
int height)
throws InvalidPowerState,
ToolsUnavailable,
RuntimeFault,
RemoteException
public void shutdownGuest()
throws TaskInProgress,
InvalidState,
ToolsUnavailable,
RuntimeFault,
RemoteException
public Task startRecording_Task(String name, String description) throws InvalidPowerState, InvalidState, TaskInProgress, FileFault, SnapshotFault, VmConfigFault, RecordReplayDisabled, HostIncompatibleForRecordReplay, InvalidName, RuntimeFault, RemoteException
public Task stopRecording_Task() throws InvalidPowerState, InvalidState, TaskInProgress, FileFault, SnapshotFault, RuntimeFault, RemoteException
InvalidPowerStateInvalidStateTaskInProgressFileFaultSnapshotFaultRuntimeFaultRemoteExceptionpublic Task stopReplaying_Task() throws InvalidPowerState, InvalidState, TaskInProgress, FileFault, SnapshotFault, RuntimeFault, RemoteException
InvalidPowerStateInvalidStateTaskInProgressFileFaultSnapshotFaultRuntimeFaultRemoteExceptionpublic Task startReplaying_Task(VirtualMachineSnapshot replaySnapshot) throws InvalidPowerState, InvalidState, TaskInProgress, FileFault, SnapshotFault, VmConfigFault, RecordReplayDisabled, HostIncompatibleForRecordReplay, InvalidName, RuntimeFault, RemoteException
public void standbyGuest()
throws TaskInProgress,
InvalidState,
ToolsUnavailable,
RuntimeFault,
RemoteException
public Task suspendVM_Task() throws TaskInProgress, InvalidState, RuntimeFault, RemoteException
public Task terminateFaultTolerantVM_Task(VirtualMachine vm) throws TaskInProgress, VmFaultToleranceIssue, InvalidState, RuntimeFault, RemoteException
TaskInProgressVmFaultToleranceIssueInvalidStateRuntimeFaultRemoteExceptionpublic Task turnOffFaultToleranceForVM_Task() throws TaskInProgress, VmFaultToleranceIssue, InvalidState, RuntimeFault, RemoteException
TaskInProgressVmFaultToleranceIssueInvalidStateRuntimeFaultRemoteExceptionpublic void unmountToolsInstaller()
throws InvalidState,
RuntimeFault,
RemoteException
InvalidStateRuntimeFaultRemoteExceptionpublic void unregisterVM()
throws InvalidPowerState,
RuntimeFault,
RemoteException
public Task upgradeTools_Task(String installerOptions) throws TaskInProgress, VmToolsUpgradeFault, InvalidState, ToolsUnavailable, RuntimeFault, RemoteException
public Task upgradeVM_Task(String version) throws TaskInProgress, InvalidState, AlreadyUpgraded, NoDiskFound, RuntimeFault, RemoteException
Copyright © 2011-2012. All Rights Reserved.