private void processDirectorStats(Map<String,MetricHeaderInfo> metricHeaderInfoMap,Map<String,Double> maxValues,Map<String,String> lastSample){
  MetricHeaderInfo headerInfo=metricHeaderInfoMap.get(HEADER_KEY_DIRECTOR_BUSY);
  if (headerInfo != null) {
    String directorBusyString=lastSample.get(HEADER_KEY_DIRECTOR_BUSY);
    if (directorBusyString != null) {
      Double percentBusy=Double.valueOf(directorBusyString);
      Double iops=(maxValues.containsKey(HEADER_KEY_DIRECTOR_FE_OPS)) ? maxValues.get(HEADER_KEY_DIRECTOR_FE_OPS) : Double.valueOf(lastSample.get(HEADER_KEY_DIRECTOR_FE_OPS));
      String lastSampleTime=lastSample.get(HEADER_KEY_TIME_UTC);
      portMetricsProcessor.processFEAdaptMetrics(percentBusy,iops.longValue(),headerInfo.director,lastSampleTime,false);
    }
  }
}

private void processDirectorStats ( Map < String , MetricHeaderInfo > metricHeaderInfoMap , Map < String , Double > maxValues , Map < String , String > lastSample ) { MetricHeaderInfo headerInfo = metricHeaderInfoMap . get ( HEADER_KEY_DIRECTOR_BUSY ) ; if ( headerInfo != null ) { String directorBusyString = lastSample . get ( HEADER_KEY_DIRECTOR_BUSY ) ; if ( directorBusyString != null ) { Double percentBusy = Double . valueOf ( directorBusyString ) ; Double iops = ( maxValues . containsKey ( HEADER_KEY_DIRECTOR_FE_OPS ) ) ? maxValues . get ( HEADER_KEY_DIRECTOR_FE_OPS ) : Double . valueOf ( lastSample . get ( HEADER_KEY_DIRECTOR_FE_OPS ) ) ; String lastSampleTime = lastSample . get ( HEADER_KEY_TIME_UTC ) ; portMetricsProcessor . processFEAdaptMetrics ( percentBusy , iops . longValue ( ) , headerInfo . director , lastSampleTime , false ) ; } } }
process the director metrics found in metricheaderinfomap
