public class VCUtil
extends java.lang.Object
| Constructor and Description |
|---|
VCUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
getEntityProps(Connection connection,
com.vmware.vim25.ManagedObjectReference entityMor,
java.lang.String[] props)
Method to retrieve properties of a
ManagedObjectReference |
static java.lang.Object[] |
waitForTask(Connection connection,
com.vmware.vim25.ManagedObjectReference objmor,
java.lang.String[] filterProps,
java.lang.String[] endWaitProps,
java.lang.Object[][] expectedVals)
Handle Updates for a single object.
|
public static java.util.Map<java.lang.String,java.lang.Object> getEntityProps(Connection connection, com.vmware.vim25.ManagedObjectReference entityMor, java.lang.String[] props) throws com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.RuntimeFaultFaultMsg
ManagedObjectReferenceentityMor - ManagedObjectReference of the entityprops - Array of properties to be looked upcom.vmware.vim25.InvalidPropertyFaultMsg - If a property does not existcom.vmware.vim25.RuntimeFaultFaultMsgpublic static java.lang.Object[] waitForTask(Connection connection, com.vmware.vim25.ManagedObjectReference objmor, java.lang.String[] filterProps, java.lang.String[] endWaitProps, java.lang.Object[][] expectedVals) throws com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidCollectorVersionFaultMsg
objmor - MOR of the Object to wait forfilterProps - Properties list to filterendWaitProps - Properties list to check for expected values these be properties
of a property in the filter properties listexpectedVals - values for properties to end the waitcom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsg