|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vim25.mo.util.PropertyCollectorUtil
public class PropertyCollectorUtil
Utility class for the PropertyCollector API.
| Field Summary | |
|---|---|
static Object |
NULL
|
| Constructor Summary | |
|---|---|
PropertyCollectorUtil()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Object NULL
| Constructor Detail |
|---|
public PropertyCollectorUtil()
| Method Detail |
|---|
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".
InvalidProperty
RuntimeFault
RemoteExceptionpublic static Object convertProperty(Object dynaPropVal)
public 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 retrieve
public static SelectionSpec[] buildFullTraversal()
public static SelectionSpec[] buildFullTraversalV4()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||