Package com.vmware.vim25

Examples of com.vmware.vim25.SelectionSpec


      TraversalSpec computeResource2HostTraversal = new TraversalSpec();
      computeResource2HostTraversal.setType("ComputeResource");
      computeResource2HostTraversal.setPath("host");
      computeResource2HostTraversal.setName("computeResource2HostTraversal");

      SelectionSpec recurseFolders = new SelectionSpec();
      recurseFolders.setName("folder2childEntity");

      TraversalSpec folder2childEntity = new TraversalSpec();
      folder2childEntity.setType("Folder");
      folder2childEntity.setPath("childEntity");
      folder2childEntity.setName(recurseFolders.getName());
      folder2childEntity.getSelectSet().add(recurseFolders);
        folder2childEntity.getSelectSet().add(computeResource2HostTraversal);

      TraversalSpec dc2HostFolderTraversal = new TraversalSpec();
      dc2HostFolderTraversal.setType("Datacenter");
View Full Code Here


      dc2VmFolderTraversal.setType("Datacenter");
      dc2VmFolderTraversal.setPath("vmFolder");
      dc2VmFolderTraversal.setName("dc2VmFolderTraversal");


      SelectionSpec recurseFolders = new SelectionSpec();
      recurseFolders.setName("folder2childEntity");

      TraversalSpec folder2childEntity = new TraversalSpec();
      folder2childEntity.setType("Folder");
      folder2childEntity.setPath("childEntity");
      folder2childEntity.setName(recurseFolders.getName());
      folder2childEntity.getSelectSet().add(recurseFolders);
      dc2VmFolderTraversal.getSelectSet().add(folder2childEntity);

      ObjectSpec oSpec = new ObjectSpec();
      oSpec.setObj(_mor);
View Full Code Here

      TraversalSpec entityParentTraversal = new TraversalSpec();
      entityParentTraversal.setType("ManagedEntity");
      entityParentTraversal.setPath("parent");
      entityParentTraversal.setName("entityParentTraversal");
      SelectionSpec selSpec = new SelectionSpec();
      selSpec.setName("entityParentTraversal");
      entityParentTraversal.getSelectSet().add(selSpec);

      ObjectSpec oSpec = new ObjectSpec();
      oSpec.setObj(morEntity);
      oSpec.setSkip(Boolean.TRUE);
View Full Code Here

            }
        }
    }

    private SelectionSpec getSelectionSpec(String name) {
        SelectionSpec genericSpec = new SelectionSpec();
        genericSpec.setName(name);
        return genericSpec;
    }
View Full Code Here

  private ObjectContent[] getDataCenterProperites(String[] properites) throws RuntimeFault, RemoteException {
    PropertySpec pSpec = new PropertySpec();
      pSpec.setType("Datacenter");
      pSpec.setPathSet(properites );

      SelectionSpec recurseFolders = new SelectionSpec();
      recurseFolders.setName("folder2childEntity");
       
      TraversalSpec folder2childEntity = new TraversalSpec();
      folder2childEntity.setType("Folder");
      folder2childEntity.setPath("childEntity");
      folder2childEntity.setName(recurseFolders.getName());
      folder2childEntity.setSelectSet(new SelectionSpec[] { recurseFolders });

      ObjectSpec oSpec = new ObjectSpec();
      oSpec.setObj(cb.getServiceConnection3().getRootFolder());
      oSpec.setSkip(Boolean.TRUE);
View Full Code Here

      resourcePoolTraversalSpec.setName("resourcePoolTraversalSpec");
      resourcePoolTraversalSpec.setType("ResourcePool");
      resourcePoolTraversalSpec.setPath("resourcePool");
      resourcePoolTraversalSpec.setSkip(new Boolean(false));
      resourcePoolTraversalSpec.setSelectSet(
      new SelectionSpec [] { new SelectionSpec(null,null,"resourcePoolTraversalSpec") });

      TraversalSpec computeResourceRpTraversalSpec = new TraversalSpec();
      computeResourceRpTraversalSpec.setName("computeResourceRpTraversalSpec");
      computeResourceRpTraversalSpec.setType("ComputeResource");
      computeResourceRpTraversalSpec.setPath("resourcePool");
      computeResourceRpTraversalSpec.setSkip(new Boolean(false));
      computeResourceRpTraversalSpec.setSelectSet(
      new SelectionSpec [] { new SelectionSpec(null,null,"resourcePoolTraversalSpec") });

      TraversalSpec computeResourceHostTraversalSpec = new TraversalSpec();
      computeResourceHostTraversalSpec.setName("computeResourceHostTraversalSpec");
      computeResourceHostTraversalSpec.setType("ComputeResource");
      computeResourceHostTraversalSpec.setPath("host");
      computeResourceHostTraversalSpec.setSkip(new Boolean(false));

      TraversalSpec datacenterHostTraversalSpec = new TraversalSpec();
      datacenterHostTraversalSpec.setName("datacenterHostTraversalSpec");
      datacenterHostTraversalSpec.setType("Datacenter");
      datacenterHostTraversalSpec.setPath("hostFolder");
      datacenterHostTraversalSpec.setSkip(new Boolean(false));
      datacenterHostTraversalSpec.setSelectSet(
      new SelectionSpec [] { new SelectionSpec(null,null,"folderTraversalSpec") });

      TraversalSpec datacenterVmTraversalSpec = new TraversalSpec();
      datacenterVmTraversalSpec.setName("datacenterVmTraversalSpec");
      datacenterVmTraversalSpec.setType("Datacenter");
      datacenterVmTraversalSpec.setPath("vmFolder");
      datacenterVmTraversalSpec.setSkip(new Boolean(false));
      datacenterVmTraversalSpec.setSelectSet(
      new SelectionSpec [] { new SelectionSpec(null,null,"folderTraversalSpec") });

      TraversalSpec folderTraversalSpec = new TraversalSpec();
      folderTraversalSpec.setName("folderTraversalSpec");
      folderTraversalSpec.setType("Folder");
      folderTraversalSpec.setPath("childEntity");
      folderTraversalSpec.setSkip(new Boolean(false));
      folderTraversalSpec.setSelectSet(
      new SelectionSpec [] { new SelectionSpec(null,null,"folderTraversalSpec"),
                             datacenterHostTraversalSpec,
                             datacenterVmTraversalSpec,
                             computeResourceRpTraversalSpec,
                             computeResourceHostTraversalSpec,
                             resourcePoolTraversalSpec });     
View Full Code Here

      folderTraversalSpec.setName("folderTraversalSpec");
      folderTraversalSpec.setType("Folder");
      folderTraversalSpec.setPath("childEntity");
      folderTraversalSpec.setSkip(new Boolean(false));
      folderTraversalSpec.setSelectSet(
        new SelectionSpec [] { new SelectionSpec(null, null, "folderTraversalSpec")}
      );
     
      PropertySpec[] propSpecs = new PropertySpec[] { new PropertySpec() };
      propSpecs[0].setAll(new Boolean(false));
      propSpecs[0].setPathSet(new String[] { "name" });
View Full Code Here

      e.printStackTrace();
    }
  }
 
  private TraversalSpec getFolderRecursiveTraversalSpec() {
      SelectionSpec recurseFolders = new SelectionSpec();
      recurseFolders.setName("folder2childEntity");
       
      TraversalSpec folder2childEntity = new TraversalSpec();
      folder2childEntity.setType("Folder");
      folder2childEntity.setPath("childEntity");
      folder2childEntity.setName(recurseFolders.getName());
      folder2childEntity.setSelectSet(new SelectionSpec[] { recurseFolders });
     
      return folder2childEntity;
  }
View Full Code Here

      TraversalSpec folderParentTraversal = new TraversalSpec();
      folderParentTraversal.setType("Folder");
      folderParentTraversal.setPath("parent");
      folderParentTraversal.setName("folderParentTraversal");
      SelectionSpec sSpec = new SelectionSpec();
      sSpec.setName("folderParentTraversal");
      folderParentTraversal.getSelectSet().add(sSpec);

      TraversalSpec dsParentTraversal = new TraversalSpec();
      dsParentTraversal.setType("Datastore");
      dsParentTraversal.setPath("parent");
View Full Code Here

            }
        }
    }

    private SelectionSpec getSelectionSpec(String name) {
        SelectionSpec genericSpec = new SelectionSpec();
        genericSpec.setName(name);
        return genericSpec;
     }
View Full Code Here

TOP

Related Classes of com.vmware.vim25.SelectionSpec

Copyright © 2018 www.massapicom. 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.