com.vmware.vim25.mo
Class InventoryNavigator

java.lang.Object
  extended by com.vmware.vim25.mo.InventoryNavigator

public class InventoryNavigator
extends Object


Constructor Summary
InventoryNavigator(ManagedEntity rootEntity)
           
 
Method Summary
 ManagedEntity[] searchManagedEntities(boolean recurse)
          Retrieve container contents from specified parent recursively if requested.
 ManagedEntity[] searchManagedEntities(String type)
          Get the first ManagedObjectReference from current node for the specified type
 ManagedEntity[] searchManagedEntities(String[][] typeinfo, boolean recurse)
          Retrieve content recursively with multiple properties.
 ManagedEntity searchManagedEntity(String type, String name)
          Get the ManagedObjectReference for an item under the specified parent node that has the type and name specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InventoryNavigator

public InventoryNavigator(ManagedEntity rootEntity)
Method Detail

searchManagedEntities

public ManagedEntity[] searchManagedEntities(boolean recurse)
                                      throws InvalidProperty,
                                             RuntimeFault,
                                             RemoteException
Retrieve container contents from specified parent recursively if requested.

Parameters:
recurse - retrieve contents recursively from the root down
Throws:
RemoteException
RuntimeFault
InvalidProperty

searchManagedEntities

public ManagedEntity[] searchManagedEntities(String type)
                                      throws InvalidProperty,
                                             RuntimeFault,
                                             RemoteException
Get the first ManagedObjectReference from current node for the specified type

Throws:
InvalidProperty
RuntimeFault
RemoteException

searchManagedEntities

public ManagedEntity[] searchManagedEntities(String[][] typeinfo,
                                             boolean recurse)
                                      throws InvalidProperty,
                                             RuntimeFault,
                                             RemoteException
Retrieve content recursively with multiple properties. the typeinfo array contains typename + properties to retrieve.

Parameters:
typeinfo - 2D array of properties for each typename
recurse - retrieve contents recursively from the root down
Returns:
retrieved object contents
Throws:
RemoteException
RuntimeFault
InvalidProperty

searchManagedEntity

public ManagedEntity searchManagedEntity(String type,
                                         String name)
                                  throws InvalidProperty,
                                         RuntimeFault,
                                         RemoteException
Get the ManagedObjectReference for an item under the specified parent node that has the type and name specified.

Parameters:
type - type of the managed object
name - name to match
Returns:
First ManagedEntity object of the type / name pair found
Throws:
RemoteException
RuntimeFault
InvalidProperty


Copyright © 2011-2012. All Rights Reserved.