Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

sharing same PropertyCollector instance across threads with non-overlapping actions?

$
0
0

Hi,

 

Can the same instance of PropertyCollector be shared across 2 threads if the properties to be read/collect don't overlap?

 

Running VCSA 5.5

 

First Thread:  
- invokes WaitForUpdatesEx() on the PropertyCollector to monitor updates on EventHistoryCollector.latestPage, with filter defined based on event types

 

Second Thread:

- invokes RetrievePropertiesEx() on the same Property Collector to read certain attributes of VM objects, with filter defined based on VM properties

 

Concern:

- Would WaitForUpdatesEx() and RetrieveProperties() calling from different threads potentially mess up the run time state of the same Property Collector instance?

 

From vSphere docs, it seems separate instances of PropertyCollector are required if both threads are using WaitForUpdatesEx(); but I am not sure

whether the same restriction also applies for combination of WaitForUpdatesEx() and RetrieveProperties() with non-overlapping filters.

 

Thanks!


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>