GetResultCount
Retrieves the
total number of stored results. This include historical results from both the
plan and its peer plan if the sites are connected.
Synopsis
int getResultCount()
Returns an integer count with
the total number of history entries for this plan, and potentially its peer.
Faults
- RuntimeFault
For information about the faults that
Site
Recovery Manager
throws, see Faults in Site Recovery Manager API. Example for
GetResultCount
int resultCount = srmPortType.getResultCount( ManagedObjectReference _this); 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));