private void processVolumeSampleList(List<Sample> sampleList,Map<String,Object> keyMap,Map<String,String> volFileMap,List<Stat> statsList){
  Iterator<Sample> itemItr=sampleList.iterator();
  while (itemItr.hasNext()) {
    Sample volSample=itemItr.next();
    List<Item> volItems=volSample.getItem();
    Iterator<Item> volItemsItr=volItems.iterator();
    while (volItemsItr.hasNext()) {
      Item volItem=volItemsItr.next();
      if (volFileMap.containsKey(volItem.getVolume())) {
        String fileSystem=volFileMap.get(volItem.getVolume());
        if (null != fileSystem) {
          injectBWInOut(fileSystem,keyMap,volItem,statsList);
        }
      }
    }
  }
}

private void processVolumeSampleList ( List < Sample > sampleList , Map < String , Object > keyMap , Map < String , String > volFileMap , List < Stat > statsList ) { Iterator < Sample > itemItr = sampleList . iterator ( ) ; while ( itemItr . hasNext ( ) ) { Sample volSample = itemItr . next ( ) ; List < Item > volItems = volSample . getItem ( ) ; Iterator < Item > volItemsItr = volItems . iterator ( ) ; while ( volItemsItr . hasNext ( ) ) { Item volItem = volItemsItr . next ( ) ; if ( volFileMap . containsKey ( volItem . getVolume ( ) ) ) { String fileSystem = volFileMap . get ( volItem . getVolume ( ) ) ; if ( null != fileSystem ) { injectBWInOut ( fileSystem , keyMap , volItem , statsList ) ; } } } } }
process the each volume sample list and inject bwin , bwout for each fileshare . we also have a one - to - one mapping between volume to fileshare .
