public class PropertyCollectorUtil extends Object
| Constructor and Description |
|---|
PropertyCollectorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SelectionSpec[] |
buildFullTraversal()
This method creates a SelectionSpec[] to traverses the entire
inventory tree starting at a Folder
NOTE: This full traversal is based on VC2/ESX3 inventory structure.
|
static SelectionSpec[] |
buildFullTraversalV4()
This method creates a SelectionSpec[] to traverses the entire
inventory tree starting at a Folder
|
static PropertySpec[] |
buildPropertySpecArray(String[][] typeProplists)
This code takes an array of [typename, property, property, ...]
and converts it into a PropertySpec[].
|
static Object |
convertProperty(Object dynaPropVal) |
static PropertySpec |
createPropertySpec(String type,
boolean allProp,
String[] pathSet) |
static SelectionSpec[] |
createSelectionSpec(String[] names) |
static TraversalSpec |
createTraversalSpec(String name,
String type,
String path,
SelectionSpec[] selectSet) |
static TraversalSpec |
createTraversalSpec(String name,
String type,
String path,
String[] selectPath) |
static ObjectSpec |
creatObjectSpec(ManagedObjectReference mor,
boolean skip,
SelectionSpec[] selSet) |
static Hashtable[] |
retrieveProperties(ManagedObject[] mos,
String moType,
String[] propPaths)
Retrieves properties from multiple managed objects.
|
public static final Object NULL
public static Hashtable[] retrieveProperties(ManagedObject[] mos, String moType, String[] propPaths) throws InvalidProperty, RuntimeFault, RemoteException
mos - the array of managed objects which could be of single type or mixed types. When they are mix-typed,
the moType must be super type of all these managed objects.moType - the type of the managed object. This managed object type must have all the properties defined as
in propPaths.propPaths - the array of property path which has dot as separator, for example, "name", "guest.toolsStatus".InvalidPropertyRuntimeFaultRemoteExceptionpublic static ObjectSpec creatObjectSpec(ManagedObjectReference mor, boolean skip, SelectionSpec[] selSet)
public static PropertySpec createPropertySpec(String type, boolean allProp, String[] pathSet)
public static SelectionSpec[] createSelectionSpec(String[] names)
public static TraversalSpec createTraversalSpec(String name, String type, String path, String[] selectPath)
public static TraversalSpec createTraversalSpec(String name, String type, String path, SelectionSpec[] selectSet)
public static PropertySpec[] buildPropertySpecArray(String[][] typeProplists)
typeProplists - 2D array of type and properties to retrievepublic static SelectionSpec[] buildFullTraversal()
public static SelectionSpec[] buildFullTraversalV4()
Copyright © 2011-2012. All Rights Reserved.