public void updateConfig(String name, ResourceConfigSpec spec) throws InvalidName, DuplicateName, ConcurrentAccess, InsufficientResourcesFault, RuntimeFault, RemoteException { getVimService().updateConfig(getMOR(), name, spec); } }
/** @since SDK4.1 */ public void refreshRuntime() throws RuntimeFault, RemoteException { getVimService().refreshRuntime(getMOR()); }
/** @since SDK4.1 */ public ResourceConfigOption queryResourceConfigOption() throws RuntimeFault, RemoteException { return getVimService().queryResourceConfigOption(getMOR()); }
public void destroyChildren() throws RuntimeFault, RemoteException { getVimService().destroyChildren(getMOR()); }
public void moveIntoResourcePool(ManagedEntity[] entities) throws DuplicateName, InsufficientResourcesFault, RuntimeFault, RemoteException { if(entities==null) { throw new IllegalArgumentException("entities must not be null."); } getVimService().moveIntoResourcePool(getMOR(), MorUtil.createMORs(entities) ); }
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 ClusterHostRecommendation[] recommendHostsForVm(VirtualMachine vm, ResourcePool pool) throws RuntimeFault, RemoteException { if(vm==null) { throw new IllegalArgumentException("vm must not be null."); } return getVimService().recommendHostsForVm(getMOR(), vm.getMOR(), pool==null? null : pool.getMOR()); }
public Event[] validateMigration(VirtualMachine[] vms, VirtualMachinePowerState state, String[] testType , ResourcePool pool, HostSystem host) throws InvalidState, RuntimeFault, RemoteException { if(vms==null) { throw new IllegalArgumentException("vms must not be null."); } return getVimService().validateMigration(getMOR(), MorUtil.createMORs(vms), state, testType, pool==null? null: pool.getMOR(), host==null? null : host.getMOR()); }
public ResourcePool createResourcePool(String name, ResourceConfigSpec spec) throws InvalidName, DuplicateName, InsufficientResourcesFault, RuntimeFault, RemoteException { ManagedObjectReference rpMor = getVimService().createResourcePool(getMOR(), name, spec); return new ResourcePool(getServerConnection(), rpMor); }
public Task moveHostInto_Task(HostSystem host, ResourcePool resourcePool) throws TooManyHosts, InvalidState, RuntimeFault, RemoteException { if(host==null) { throw new IllegalArgumentException("host must not be null."); } ManagedObjectReference taskMOR = getVimService().moveHostInto_Task(getMOR(), host.getMOR(), resourcePool==null? null : resourcePool.getMOR()); return new Task(getServerConnection(), taskMOR); }
/** @since SDK4.0 */ public VirtualApp createVApp(String name, ResourceConfigSpec resSpec, VAppConfigSpec configSpec, Folder vmFolder) throws InvalidName, DuplicateName, InsufficientResourcesFault, InvalidState, VmConfigFault, RuntimeFault, RemoteException { ManagedObjectReference vaMor = getVimService().createVApp(getMOR(), name, resSpec, configSpec, vmFolder==null? null : vmFolder.getMOR()); return new VirtualApp(getServerConnection(), vaMor); }
public Task addHost_Task(HostConnectSpec spec, boolean asConnected, ResourcePool resourcePool, String license) throws InvalidLogin, HostConnectFault, RuntimeFault, RemoteException { ManagedObjectReference taskMOR = getVimService().addHost_Task(getMOR(), spec, asConnected, resourcePool==null? null : resourcePool.getMOR(), license); return new Task(getServerConnection(), taskMOR); }
/** @since SDK4.0 */ public Task registerChildVM_Task(String path, String name, HostSystem host) throws OutOfBounds, AlreadyExists, InvalidDatastore, NotFound, InvalidName, VmConfigFault, InsufficientResourcesFault, FileFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().registerChildVM_Task(getMOR(), path, name, host==null?null:host.getMOR()); return new Task(getServerConnection(), mor); }
/** @since SDK4.0 */ public Task createChildVM_Task(VirtualMachineConfigSpec config, HostSystem host) throws VmConfigFault, FileFault, OutOfBounds, InvalidName, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().createChildVM_Task(getMOR(), config, host==null? null : host.getMOR()); return new Task(getServerConnection(), taskMor); }
public Task createVM_Task(VirtualMachineConfigSpec config, ResourcePool pool, HostSystem host) throws InvalidName, VmConfigFault, DuplicateName, FileFault, OutOfBounds, InsufficientResourcesFault, InvalidDatastore, RuntimeFault, RemoteException { return new Task(getServerConnection(), getVimService().createVM_Task(getMOR(), config, pool.getMOR(), host==null? null : host.getMOR()) ); }
public Task migrateVM_Task(ResourcePool pool, HostSystem host, VirtualMachineMovePriority priority, VirtualMachinePowerState state) throws VmConfigFault, Timedout, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().migrateVM_Task(getMOR(), pool==null? null : pool.getMOR(), host==null? null : host.getMOR(), priority, state); return new Task(getServerConnection(), mor); }
/** @since SDK4.0 */ public HttpNfcLease importVApp(ImportSpec spec, Folder folder, HostSystem host) throws VmConfigFault, FileFault, OutOfBounds, DuplicateName, InvalidName, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().importVApp(getMOR(), spec, folder==null? null : folder.getMOR(), host==null? null : host.getMOR()); return new HttpNfcLease(getServerConnection(), mor); }
public Task registerVM_Task(String path, String name, boolean asTemplate, ResourcePool pool, HostSystem host) throws VmConfigFault, InvalidName, DuplicateName, FileFault, OutOfBounds, InsufficientResourcesFault, InvalidDatastore, AlreadyExists, NotFound, RuntimeFault, RemoteException { return new Task( getServerConnection(), getVimService().registerVM_Task(getMOR(), path, name, asTemplate, pool==null? null : pool.getMOR(), host==null? null : host.getMOR()) ); }
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); } }
public Task checkMigrate_Task(VirtualMachine vm, HostSystem host, ResourcePool pool, VirtualMachinePowerState state, String[] testType) throws NoActiveHostInCluster, InvalidState, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().checkMigrate_Task(getMOR(), vm.getMOR(), host==null?null : host.getMOR(), pool==null?null : pool.getMOR(), state, testType); return new Task(getServerConnection(), taskMor); }