Examples of PropertySpec


Examples of com.vmware.vim25.PropertySpec

  }

  public List<ObjectContent> getDatastorePropertiesOnDatacenter(String[] propertyPaths) throws Exception {

    PropertySpec pSpec = new PropertySpec();
    pSpec.setType("Datastore");
    pSpec.getPathSet().addAll(Arrays.asList(propertyPaths));

      TraversalSpec dc2DatastoreTraversal = new TraversalSpec();
      dc2DatastoreTraversal.setType("Datacenter");
      dc2DatastoreTraversal.setPath("datastore");
      dc2DatastoreTraversal.setName("dc2DatastoreTraversal");
View Full Code Here

Examples of com.vmware.vim25.PropertySpec

      return _context.getService().retrieveProperties(_context.getPropertyCollector(), pfSpecArr);

  }

  public List<ObjectContent> getVmPropertiesOnDatacenterVmFolder(String[] propertyPaths) throws Exception {
    PropertySpec pSpec = new PropertySpec();
    pSpec.setType("VirtualMachine");
    pSpec.getPathSet().addAll(Arrays.asList(propertyPaths));

      TraversalSpec dc2VmFolderTraversal = new TraversalSpec();
      dc2VmFolderTraversal.setType("Datacenter");
      dc2VmFolderTraversal.setPath("vmFolder");
      dc2VmFolderTraversal.setName("dc2VmFolderTraversal");
View Full Code Here

Examples of com.vmware.vim25.PropertySpec

  }

  public static Pair<DatacenterMO, String> getOwnerDatacenter(VmwareContext context,
    ManagedObjectReference morEntity) throws Exception {

    PropertySpec pSpec = new PropertySpec();
    pSpec.setType("Datacenter");
    pSpec.getPathSet().add("name");

      TraversalSpec entityParentTraversal = new TraversalSpec();
      entityParentTraversal.setType("ManagedEntity");
      entityParentTraversal.setPath("parent");
      entityParentTraversal.setName("entityParentTraversal");
View Full Code Here

Examples of org.jsynthlib.xmldevice.PropertySpec

                        BeanUtils.describe(patchNameSender);
                Iterator<Entry<String, String>> iterator =
                        description.entrySet().iterator();
                while (iterator.hasNext()) {
                    Entry<String, String> entry = iterator.next();
                    PropertySpec property = xmlSender.addNewProperty();
                    property.setName(entry.getKey());
                    property.setValue(entry.getValue());
                }
            } catch (InvocationTargetException e) {
                LOG.warn(e.getMessage(), e);
            } catch (NoSuchMethodException e) {
                LOG.warn(e.getMessage(), e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.