private List<Volume> createVPlexVolumes(String name,int numberOfVols,URI storageSystem){
  List<Volume> volumes=new ArrayList<Volume>();
  for (int i=1; i <= numberOfVols; i++) {
    Volume vplexVolume=new Volume();
    URI vplexVolumeUri=URIUtil.createId(Volume.class);
    vplexVolumeURIs.add(vplexVolumeUri);
    vplexVolume.setId(vplexVolumeUri);
    vplexVolume.setLabel(name + i);
    vplexVolume.setNativeId("/clusters/cluster-1/virtual-volumes/device_V000195701573-01E7F_vol" + i);
    vplexVolume.setStorageController(storageSystem);
    StringSet associatedVolumes=new StringSet();
    associatedVolumes.add("associatedVol1");
    vplexVolume.setAssociatedVolumes(associatedVolumes);
    volumes.add(vplexVolume);
  }
  return volumes;
}

private List < Volume > createVPlexVolumes ( String name , int numberOfVols , URI storageSystem ) { List < Volume > volumes = new ArrayList < Volume > ( ) ; for ( int i = 1 ; i <= numberOfVols ; i ++ ) { Volume vplexVolume = new Volume ( ) ; URI vplexVolumeUri = URIUtil . createId ( Volume . class ) ; vplexVolumeURIs . add ( vplexVolumeUri ) ; vplexVolume . setId ( vplexVolumeUri ) ; vplexVolume . setLabel ( name + i ) ; vplexVolume . setNativeId ( "/clusters/cluster-1/virtual-volumes/device_V000195701573-01E7F_vol" + i ) ; vplexVolume . setStorageController ( storageSystem ) ; StringSet associatedVolumes = new StringSet ( ) ; associatedVolumes . add ( "associatedVol1" ) ; vplexVolume . setAssociatedVolumes ( associatedVolumes ) ; volumes . add ( vplexVolume ) ; } return volumes ; }
convenience method that creates vplex volumes .
