public boolean verifyCopyIsCurrentSourceCopy(FunctionalAPIImpl port,ConsistencyGroupCopyUID groupCopy) throws FunctionalAPIActionFailedException_Exception, FunctionalAPIInternalError_Exception {
  VerifyConsistencyGroupStateParam stateParam=new VerifyConsistencyGroupStateParam();
  stateParam.setSourceCopy(groupCopy);
  TransactionID transactionID=port.verifyConsistencyGroupStateWithDefaultTimeout(groupCopy.getGroupUID(),stateParam);
  TransactionResult result;
  try {
    result=getTransactionResult(port,transactionID);
    if (result != null) {
      if (result.getExceptionMessage() != null) {
        logger.error("verifyGroupSourceCopy failed with: " + result.getExceptionMessage());
      }
    }
  }
 catch (  InterruptedException e) {
    logger.error("Caught InterruptedException while checking for failover complete",e);
    return false;
  }
  return (result != null) && (result.getExceptionType() == null);
}

public boolean verifyCopyIsCurrentSourceCopy ( FunctionalAPIImpl port , ConsistencyGroupCopyUID groupCopy ) throws FunctionalAPIActionFailedException_Exception , FunctionalAPIInternalError_Exception { VerifyConsistencyGroupStateParam stateParam = new VerifyConsistencyGroupStateParam ( ) ; stateParam . setSourceCopy ( groupCopy ) ; TransactionID transactionID = port . verifyConsistencyGroupStateWithDefaultTimeout ( groupCopy . getGroupUID ( ) , stateParam ) ; TransactionResult result ; try { result = getTransactionResult ( port , transactionID ) ; if ( result != null ) { if ( result . getExceptionMessage ( ) != null ) { logger . error ( "verifyGroupSourceCopy failed with: " + result . getExceptionMessage ( ) ) ; } } } catch ( InterruptedException e ) { logger . error ( "Caught InterruptedException while checking for failover complete" , e ) ; return false ; } return ( result != null ) && ( result . getExceptionType ( ) == null ) ; }
this method verifies that the specified group copy is the current source copy
