Server Data Transmission
Property collection can involve the retrieval of large amounts of data, depending on the number of properties implied in the collection request. The vSphere server supports segmented data transmission, or chunking, when it sends collected data to a client. If the amount of collected data exceeds the chunk size, the server returns a chunk of data in a single response, and indicates additional data can be retrieved. For information about chunk size, see the description of the
RetrieveOptions.maxObjects
and WaitOptions.maxObjectUpdates
properties in the vSphere API Reference
.- TheWaitForUpdatesExmethod returns anUpdateSetdata object. TheUpdateSet.truncatedproperty indicates whether you must callWaitForUpdatesExagain to retrieve additional data. Iftruncatedistrue, theWaitForUpdatesExmethod returns a version string to identify chunked data. When your client application receives an indication that additional data are available, it must send the returnedUpdateSet.versionstring in the subsequent call toWaitForUpdatesExto retrieve the next chunk of data.
- TheRetrievePropertiesExmethod returns aRetrieveResultdata object. TheRetrieveResult.tokenproperty indicates whether you must call theContinueRetrievePropertiesExmethod to retrieve additional data. If thetokenproperty has a value, it identifies chunked data. When your client application receives an indication that additional data are available, it must send the returned token in the subsequent call toContinueRetrievePropertiexExto retrieve the next chunk of data.
Version strings and tokens are sequenced. Your client application must keep track of the sequence of values. If an error interrupts the collection operation, resume the operation by using the version string or token that was submitted before the interruption.