private List<Volume> fetchVolumeDetailsById(List<String> volumeIdList) throws SOSFailure {
  final String methodName="fetchVolumeDetailsById(): ";
  final String VOLUME_DETAIL_URI="/block/volumes/%s";
  log.trace(methodName + "Entry with input: volumeIdList[" + volumeIdList+ "]");
  List<Volume> volumeDetailList=new ArrayList<Volume>();
  try {
    if (volumeIdList != null) {
      for (      String volumeId : volumeIdList) {
        Volume volume=_client.queryObject(String.format(VOLUME_DETAIL_URI,volumeId),Volume.class);
        if (volume != null) {
          if (!volume.isInactive() && volume.getId() != null) {
            volumeDetailList.add(volume);
            log.trace(methodName + volume);
          }
        }
      }
    }
  }
 catch (  NoSuchAlgorithmException e) {
    log.error(methodName + "NoSuchAlgorithmException occured",e);
    throw new SOSFailure(e);
  }
catch (  UniformInterfaceException e) {
    log.error(methodName + "UniformInterfaceException occured",e);
    throw new SOSFailure(e);
  }
  log.trace(methodName + "Exit returning volume list of size[" + volumeDetailList.size()+ "]");
  return volumeDetailList;
}

private List < Volume > fetchVolumeDetailsById ( List < String > volumeIdList ) throws SOSFailure { final String methodName = "fetchVolumeDetailsById(): " ; final String VOLUME_DETAIL_URI = "/block/volumes/%s" ; log . trace ( methodName + "Entry with input: volumeIdList[" + volumeIdList + "]" ) ; List < Volume > volumeDetailList = new ArrayList < Volume > ( ) ; try { if ( volumeIdList != null ) { for ( String volumeId : volumeIdList ) { Volume volume = _client . queryObject ( String . format ( VOLUME_DETAIL_URI , volumeId ) , Volume . class ) ; if ( volume != null ) { if ( ! volume . isInactive ( ) && volume . getId ( ) != null ) { volumeDetailList . add ( volume ) ; log . trace ( methodName + volume ) ; } } } } } catch ( NoSuchAlgorithmException e ) { log . error ( methodName + "NoSuchAlgorithmException occured" , e ) ; throw new SOSFailure ( e ) ; } catch ( UniformInterfaceException e ) { log . error ( methodName + "UniformInterfaceException occured" , e ) ; throw new SOSFailure ( e ) ; } log . trace ( methodName + "Exit returning volume list of size[" + volumeDetailList . size ( ) + "]" ) ; return volumeDetailList ; }
returns details of all active volumes
