private void updateVirtualVolumeInfoAfterCommit(String virtualVolumeName,List<VPlexMigrationInfo> migrationInfoList,boolean rename) throws VPlexApiException {
  VPlexApiDiscoveryManager discoveryMgr=_vplexApiClient.getDiscoveryManager();
  List<VPlexClusterInfo> clusterInfoList=discoveryMgr.getClusterInfoLite();
  for (  VPlexMigrationInfo migrationInfo : migrationInfoList) {
    if (migrationInfo.getIsDeviceMigration()) {
      updateVolumeInfoAfterCommitDeviceMigration(virtualVolumeName,migrationInfo,clusterInfoList,rename);
    }
 else {
      updateVolumeInfoAfterCommitExtentMigration(virtualVolumeName,migrationInfo,clusterInfoList,rename);
    }
  }
  s_logger.info("Done updating volume info after commit");
}

private void updateVirtualVolumeInfoAfterCommit ( String virtualVolumeName , List < VPlexMigrationInfo > migrationInfoList , boolean rename ) throws VPlexApiException { VPlexApiDiscoveryManager discoveryMgr = _vplexApiClient . getDiscoveryManager ( ) ; List < VPlexClusterInfo > clusterInfoList = discoveryMgr . getClusterInfoLite ( ) ; for ( VPlexMigrationInfo migrationInfo : migrationInfoList ) { if ( migrationInfo . getIsDeviceMigration ( ) ) { updateVolumeInfoAfterCommitDeviceMigration ( virtualVolumeName , migrationInfo , clusterInfoList , rename ) ; } else { updateVolumeInfoAfterCommitExtentMigration ( virtualVolumeName , migrationInfo , clusterInfoList , rename ) ; } } s_logger . info ( "Done updating volume info after commit" ) ; }
ensures that the name of the virtual volume associated with the committed migration is updated to reflect the target of the migration . when created , the name of the virtual volume will include the migration source , and we want to be sure the name continues to reflect the backend storage volumes used by the virtual volume .
