/** @deprecated as of SDK4.1 */ public ObjectContent[] retrieveProperties(PropertyFilterSpec[] specSet) throws InvalidProperty, RuntimeFault, RemoteException { return getVimService().retrieveProperties(getMOR(), specSet); }
private List<ObjectContent> retrieveProperties(PropertyFilterSpec spec) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg { ManagedObjectReference pc = this.connection.getServiceContent().getPropertyCollector(); return this.connection.getVimPort().retrieveProperties(pc, Arrays.asList(spec)); }
private List<ObjectContent> retrieveProperties(PropertyFilterSpec spec) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg { ManagedObjectReference pc = this.connection.getServiceContent().getPropertyCollector(); return this.connection.getVimPort().retrieveProperties(pc, Arrays.asList(spec)); }
List<ObjectContent> ocs = vimPort.retrieveProperties( serviceContent.getPropertyCollector(), Arrays.asList(new PropertyFilterSpec[] { pfSpec }));
private List<ObjectContent> ancestrySet(ManagedObjectReference ref) throws InvalidPropertyFaultMsg, RuntimeFaultFaultMsg { ObjectSpec ospec = new ObjectSpec(); ospec.setObj(ref); ospec.setSkip(false); TraversalSpec tspec = new TraversalSpec(); tspec.setSkip(false); tspec.setPath("parent"); tspec.setType("ManagedEntity"); tspec.setName("traverseParent"); SelectionSpec selSpec = new SelectionSpec(); selSpec.setName("traverseParent"); tspec.getSelectSet().add(selSpec); ospec.getSelectSet().add(tspec); PropertySpec pspec = new PropertySpec(); pspec.setType("ManagedEntity"); pspec.getPathSet().add("name"); pspec.getPathSet().add("parent"); PropertyFilterSpec filter = new PropertyFilterSpec(); filter.getObjectSet().add(ospec); filter.getPropSet().add(pspec); return this.connection.getVimPort() .retrieveProperties(this.connection.getServiceContent().getPropertyCollector(), Collections.singletonList(filter)); }
Map<String, String> proxyParents = new HashMap<String, String>(); List<ObjectContent> entities = connection.getProxy().retrieveProperties(connection.getServiceContent().getPropertyCollector(), Collections.singletonList(spec));