public DistributedVirtualPortgroup[] getPortgroup() { ManagedObjectReference[] pgMors = (ManagedObjectReference[]) getCurrentProperty("portgroup"); if(pgMors==null) { return new DistributedVirtualPortgroup[]{}; } DistributedVirtualPortgroup[] dvpgs = new DistributedVirtualPortgroup[pgMors.length]; for(int i=0; i< pgMors.length; i++) { dvpgs[i] = new DistributedVirtualPortgroup(getServerConnection(), pgMors[i]); } return dvpgs; }
public Task performDvsProductSpecOperation_Task(String operation, DistributedVirtualSwitchProductSpec productSpec) throws TaskInProgress, InvalidState, DvsFault, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().performDvsProductSpecOperation_Task(getMOR(), operation, productSpec); return new Task(getServerConnection(), taskMor); }
public Task reconfigureDvs_Task(DVSConfigSpec spec) throws DvsNotAuthorized, DvsFault, ConcurrentAccess, DuplicateName, InvalidState, InvalidName, NotFound, AlreadyExists, LimitExceeded, ResourceInUse, ResourceNotAvailable, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().reconfigureDvs_Task(getMOR(), spec); return new Task(getServerConnection(), taskMor); }
/** @since SDK5.1 */ public Task dVSRollback_Task(EntityBackupConfig spec) throws RollbackFailure, DvsFault, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().dVSRollback_Task(getMOR(), spec); return new Task(getServerConnection(), taskMor); }
public Task addDVPortgroup_Task(DVPortgroupConfigSpec[] spec) throws DvsFault, DuplicateName, InvalidName, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().addDVPortgroup_Task(getMOR(), spec); return new Task(getServerConnection(), taskMor); }
/** @since SDK5.1 */ public Task createDVPortgroup_Task(DVPortgroupConfigSpec spec) throws DvsFault, DuplicateName, InvalidName, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().createDVPortgroup_Task(getMOR(), spec); return new Task(getServerConnection(), taskMor); }
/** @since SDK5.1 */ public DistributedVirtualPortgroup lookupDvPortGroup(String portgroupKey) throws NotFound, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().lookupDvPortGroup(getMOR(), portgroupKey); return new DistributedVirtualPortgroup(getServerConnection(), mor); }
public Task reconfigureDVPort_Task(DVPortConfigSpec[] port) throws DvsFault, NotFound, ResourceInUse, ConcurrentAccess, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().reconfigureDVPort_Task(getMOR(), port); return new Task(getServerConnection(), mor); }
/** @since SDK5.1 */ public Task updateDVSHealthCheckConfig_Task(DVSHealthCheckConfig[] healthCheckConfig) throws DvsFault, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().updateDVSHealthCheckConfig_Task(getMOR(), healthCheckConfig); return new Task(getServerConnection(), taskMor); }
public Task moveDVPort_Task(String[] portKey, String destinationPortgroupKey) throws DvsFault, NotFound, ConcurrentAccess, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().moveDVPort_Task(getMOR(), portKey, destinationPortgroupKey); return new Task(getServerConnection(), taskMor); }
public Task mergeDvs_Task(DistributedVirtualSwitch dvs) throws InvalidHostState, DvsFault, NotFound, ResourceInUse, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().mergeDvs_Task(getMOR(), dvs.getMOR()); return new Task(getServerConnection(), taskMor); }
public Task rectifyDvsHost_Task(HostSystem[] hosts) throws DvsFault, NotFound, RuntimeFault, RemoteException { ManagedObjectReference[] mors = MorUtil.createMORs(hosts); ManagedObjectReference mor = getVimService().rectifyDvsHost_Task(getMOR(), mors); return new Task(getServerConnection(), mor); }
ManagedObjectReference pgMor = (ManagedObjectReference) ti.getResult(); DistributedVirtualPortgroup pg = (DistributedVirtualPortgroup) MorUtil.createExactManagedEntity(dvs.getServerConnection(), pgMor); return pg;
ManagedObjectReference pgMor = (ManagedObjectReference) ti.getResult(); DistributedVirtualPortgroup pg = (DistributedVirtualPortgroup) MorUtil.createExactManagedEntity(dvs.getServerConnection(), pgMor); return pg;