Package com.vmware.connection.helpers
Class WaitForValues
- java.lang.Object
-
- com.vmware.connection.helpers.BaseHelper
-
- com.vmware.connection.helpers.WaitForValues
-
public class WaitForValues extends BaseHelper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.helpers.BaseHelper
BaseHelper.HelperException
-
-
Constructor Summary
Constructors Constructor Description WaitForValues(Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vmware.vim25.PropertyFilterSpecpropertyFilterSpec(com.vmware.vim25.ManagedObjectReference objmor, java.lang.String[] filterProps)java.lang.Object[]wait(com.vmware.vim25.ManagedObjectReference objmor, java.lang.String[] filterProps, java.lang.String[] endWaitProps, java.lang.Object[][] expectedVals)Handle Updates for a single object.
-
-
-
Constructor Detail
-
WaitForValues
public WaitForValues(Connection connection)
-
-
Method Detail
-
wait
public java.lang.Object[] wait(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.InvalidCollectorVersionFaultMsgHandle Updates for a single object. waits till expected values of properties to check are reached Destroys the ObjectFilter when done.- Parameters:
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 wait- Returns:
- true indicating expected values were met, and false otherwise
- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsg
-
propertyFilterSpec
public com.vmware.vim25.PropertyFilterSpec propertyFilterSpec(com.vmware.vim25.ManagedObjectReference objmor, java.lang.String[] filterProps)
-
-