GetResultLength
Retrieves the length of the XML result document for the requested Recovery Result.
Synopsis
int getResultLength(long key)
key is the unique key for the plan history, from return value of the GetRecoveryResult method.
Returns an integer specifying the number of lines in the XML result file.
Faults
- RecoveryResultNotFound, if no result with that key exists.
- RuntimeFault
For information about the faults that Site Recovery Manager throws, see Faults in Site Recovery Manager API.
Example for GetResultLength
int length = srmPortType.getResultLength( ManagedObjectReference _this, long key); Where ManagedObjectReference _this = _historyRef; where _historyRef can be taken from: SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef); ManagedObjectReference _recoveryRef = content.getRecovery(); List < ManagedObjectReference > plans = srmPortType.listPlans( _recoveryRef); ManagedObjectReference _historyRef = srmPortType.getHistory( _recoveryRef, plans.get(0));