This method checks whether the protection task has completed.
Synopsis
boolean isComplete( )
Returns true if the task has completed, false if not.
Faults
- RuntimeFault
For information about the faults that Site Recovery Manager throws, see Faults in Site Recovery Manager API.
Example for IsComplete
boolean isComplete = srmPortType.isComplete(ManagedObjectReference _this); Where ManagedObjectReference _this = _protectionTaskRef; where _protectionTaskRef can be taken from: SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef); ManagedObjectReference _protectionRef = content.getProtection(); List < ManagedObjectReference > groups = srmPortType.listProtectionGroups(_protectionRef); _protectionGroupRef = groups.get(0); ManagedObjectReference _protectionTaskRef = srmPortType.protectVms( _protectionGroupRef, _vms);