private String buildVirtualVolumeName(List<String> nativeVolumeNames){
  s_logger.info("Building virtual volume name from native volume info");
  StringBuilder nameBuilder=new StringBuilder();
  if (nativeVolumeNames.size() == 1) {
    nameBuilder.append(VPlexApiConstants.DEVICE_PREFIX);
    nameBuilder.append(nativeVolumeNames.get(0));
    nameBuilder.append(VPlexApiConstants.VIRTUAL_VOLUME_SUFFIX);
  }
 else {
    nameBuilder.append(VPlexApiConstants.DIST_DEVICE_PREFIX);
    for (    String nativeVolumeName : nativeVolumeNames) {
      nameBuilder.append(VPlexApiConstants.DIST_DEVICE_NAME_DELIM);
      nameBuilder.append(nativeVolumeName);
    }
    nameBuilder.append(VPlexApiConstants.VIRTUAL_VOLUME_SUFFIX);
  }
  s_logger.info("Virtual volume name is {}",nameBuilder.toString());
  return nameBuilder.toString();
}

private String buildVirtualVolumeName ( List < String > nativeVolumeNames ) { s_logger . info ( "Building virtual volume name from native volume info" ) ; StringBuilder nameBuilder = new StringBuilder ( ) ; if ( nativeVolumeNames . size ( ) == 1 ) { nameBuilder . append ( VPlexApiConstants . DEVICE_PREFIX ) ; nameBuilder . append ( nativeVolumeNames . get ( 0 ) ) ; nameBuilder . append ( VPlexApiConstants . VIRTUAL_VOLUME_SUFFIX ) ; } else { nameBuilder . append ( VPlexApiConstants . DIST_DEVICE_PREFIX ) ; for ( String nativeVolumeName : nativeVolumeNames ) { nameBuilder . append ( VPlexApiConstants . DIST_DEVICE_NAME_DELIM ) ; nameBuilder . append ( nativeVolumeName ) ; } nameBuilder . append ( VPlexApiConstants . VIRTUAL_VOLUME_SUFFIX ) ; } s_logger . info ( "Virtual volume name is {}" , nameBuilder . toString ( ) ) ; return nameBuilder . toString ( ) ; }
creates the name given a virtual volume when it is created .
