public static boolean isVolumeCGFullCopySource(Volume volume,DbClient dbClient){
  boolean isFullCopySource=false;
  StringSet fullCopyIds=volume.getFullCopies();
  if ((fullCopyIds != null) && (!fullCopyIds.isEmpty())) {
    Iterator<String> fullCopyIdsIter=fullCopyIds.iterator();
    while (fullCopyIdsIter.hasNext()) {
      URI fullCopyURI=URI.create(fullCopyIdsIter.next());
      Volume fullCopyVolume=dbClient.queryObject(Volume.class,fullCopyURI);
      if ((fullCopyVolume != null) && (!fullCopyVolume.getInactive())) {
        String groupName=fullCopyVolume.getReplicationGroupInstance();
        if (NullColumnValueGetter.isNotNullValue(groupName) || VPlexUtil.isBackendFullCopyInReplicationGroup(fullCopyVolume,dbClient)) {
          isFullCopySource=true;
          break;
        }
      }
    }
  }
  return isFullCopySource;
}

public static boolean isVolumeCGFullCopySource ( Volume volume , DbClient dbClient ) { boolean isFullCopySource = false ; StringSet fullCopyIds = volume . getFullCopies ( ) ; if ( ( fullCopyIds != null ) && ( ! fullCopyIds . isEmpty ( ) ) ) { Iterator < String > fullCopyIdsIter = fullCopyIds . iterator ( ) ; while ( fullCopyIdsIter . hasNext ( ) ) { URI fullCopyURI = URI . create ( fullCopyIdsIter . next ( ) ) ; Volume fullCopyVolume = dbClient . queryObject ( Volume . class , fullCopyURI ) ; if ( ( fullCopyVolume != null ) && ( ! fullCopyVolume . getInactive ( ) ) ) { String groupName = fullCopyVolume . getReplicationGroupInstance ( ) ; if ( NullColumnValueGetter . isNotNullValue ( groupName ) || VPlexUtil . isBackendFullCopyInReplicationGroup ( fullCopyVolume , dbClient ) ) { isFullCopySource = true ; break ; } } } } return isFullCopySource ; }
determine if the passed volume is a source volume for any consistency group full copies .
