/** @since SDK4.0 */ public Task terminateFaultTolerantVM_Task(VirtualMachine vm) throws TaskInProgress, VmFaultToleranceIssue, InvalidState, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().terminateFaultTolerantVM_Task(getMOR(), vm==null? null : vm.getMOR()); return new Task(getServerConnection(), mor); }
/** @since SDK4.1 */ public VirtualMachineTicket acquireTicket(String ticketType) throws InvalidState, RuntimeFault, RemoteException { return getVimService().acquireTicket(getMOR(), ticketType); }
/** @since SDK4.0 */ public String extractOvfEnvironment() throws InvalidState, RuntimeFault, RemoteException { return getVimService().extractOvfEnvironment(getMOR()); }
/** @since SDK4.0 */ public Task disableSecondaryVM_Task(VirtualMachine vm) throws TaskInProgress, VmFaultToleranceIssue, InvalidState, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().disableSecondaryVM_Task(getMOR(), vm.getMOR()); return new Task(getServerConnection(), mor); }
public void terminateProcessInGuest(GuestAuthentication auth, long pid) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException { getVimService().terminateProcessInGuest(getMOR(), vm.getMOR(), auth, pid); } }
/** @since SDK4.0 */ public DiskChangeInfo queryChangedDiskAreas(VirtualMachineSnapshot snapshot, int deviceKey, long startOffset, String changeId) throws FileFault, NotFound, RuntimeFault, RemoteException { return getVimService().queryChangedDiskAreas(getMOR(), snapshot==null?null:snapshot.getMOR(), deviceKey, startOffset, changeId); }
public HostVMotionCompatibility[] queryVMotionCompatibility(VirtualMachine vm, HostSystem[] hosts, String[] compatibility) throws RuntimeFault, RemoteException { if(vm==null || hosts==null) { throw new IllegalArgumentException("Neither vm or hosts can be null."); } return getVimService().queryVMotionCompatibility(getMOR(), vm.getMOR(), MorUtil.createMORs(hosts), compatibility); }
public void markAsVirtualMachine(ResourcePool pool, HostSystem host) throws VmConfigFault, FileFault, InvalidState, InvalidDatastore, RuntimeFault, RemoteException { if(pool==null) { throw new IllegalArgumentException("pool must not be null."); } getVimService().markAsVirtualMachine(getMOR(), pool.getMOR(), host==null? null : host.getMOR()); }
public Task cloneVM_Task(Folder folder, String name, VirtualMachineCloneSpec spec) throws VmConfigFault, TaskInProgress, CustomizationFault, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, InvalidDatastore, RuntimeFault, RemoteException { if(folder==null) { throw new IllegalArgumentException("folder must not be null."); } ManagedObjectReference mor = getVimService().cloneVM_Task(getMOR(), folder.getMOR(), name, spec); return new Task(getServerConnection(), mor); }
/** @since SDK4.0 */ public Task CreateScreenshot_Task() throws TaskInProgress, FileFault, InvalidState, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().createScreenshot_Task(getMOR()); return new Task(getServerConnection(), mor); }
/** @since SDK5.0 */ public Task estimateStorageForConsolidateSnapshots_Task() throws TaskInProgress, InvalidState, FileFault, VmConfigFault, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().estimateStorageForConsolidateSnapshots_Task(getMOR()); return new Task(getServerConnection(), taskMor); }
public Task upgradeVM_Task(String version) throws TaskInProgress, InvalidState, AlreadyUpgraded, NoDiskFound, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().upgradeVM_Task(getMOR(), version); return new Task(getServerConnection(), mor); } }
public Task customizeVM_Task(CustomizationSpec spec) throws CustomizationFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().customizeVM_Task(getMOR(), spec); return new Task(getServerConnection(), mor); }
/** @since SDK4.1 */ public Task reloadVirtualMachineFromPath_Task(String configurationPath) throws InvalidPowerState, TaskInProgress, FileFault, InvalidState, VmConfigFault, AlreadyExists, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().reloadVirtualMachineFromPath_Task(getMOR(), configurationPath); return new Task(getServerConnection(), mor); }
/** @since SDK4.0 */ public Task startRecording_Task(String name, String description) throws InvalidPowerState, InvalidState, TaskInProgress, FileFault, SnapshotFault, VmConfigFault, RecordReplayDisabled, HostIncompatibleForRecordReplay, InvalidName, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().startRecording_Task(getMOR(), name, description); return new Task(getServerConnection(), mor); }
public Task suspendVM_Task() throws TaskInProgress, InvalidState, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().suspendVM_Task(getMOR()); return new Task(getServerConnection(), mor); }
/** @since SDK4.0 */ public Task startReplaying_Task(VirtualMachineSnapshot replaySnapshot) throws InvalidPowerState, InvalidState, TaskInProgress, FileFault, SnapshotFault, VmConfigFault, RecordReplayDisabled, HostIncompatibleForRecordReplay, InvalidName, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().startReplaying_Task(getMOR(),replaySnapshot.getMOR()); return new Task(getServerConnection(), mor); }
public Task powerOnVM_Task(HostSystem host) throws VmConfigFault, TaskInProgress, FileFault, InvalidState, InsufficientResourcesFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().powerOnVM_Task(getMOR(), host==null? null : host.getMOR()); return new Task(getServerConnection(), mor); }
public Task checkCompatibility_Task(VirtualMachine vm, HostSystem host, ResourcePool pool, String[] testType) throws NoActiveHostInCluster, InvalidState, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().checkCompatibility_Task(getMOR(), vm==null?null:vm.getMOR(), host==null?null:host.getMOR(), pool==null?null:pool.getMOR(), testType); return new Task(getServerConnection(), taskMor); } }