public void processFEAdaptMetrics(Double percentBusy,Long iops,StorageHADomain haDomain,String statisticTime,boolean usingCIMTime){
  StorageSystem system=_dbClient.queryObject(StorageSystem.class,haDomain.getStorageDeviceURI());
  StringMap dbMetrics=haDomain.getMetrics();
  Long sampleTime=(usingCIMTime) ? convertCIMStatisticTime(statisticTime) : Long.valueOf(statisticTime);
  _log.info(String.format("FEAdaptMetrics %s %s percentBusy %f  iops %d sampleTime %d",haDomain.getAdapterName(),haDomain.getNativeGuid(),percentBusy,iops,sampleTime));
  Long iopsValue=MetricsKeys.getLong(MetricsKeys.iopsValue,dbMetrics);
  Long iopsDelta=iops - iopsValue;
  percentBusy*=10.0;
  if (percentBusy >= 0.0) {
    computePercentBusyAverages(percentBusy.longValue(),1000L,iopsDelta,dbMetrics,haDomain.getNativeGuid(),haDomain.getAdapterName() + " [cpu]",sampleTime,system);
  }
  MetricsKeys.putLong(MetricsKeys.iopsValue,iops,dbMetrics);
  MetricsKeys.putLong(MetricsKeys.lastSampleTime,sampleTime,dbMetrics);
  haDomain.setMetrics(dbMetrics);
  _dbClient.persistObject(haDomain);
}

public void processFEAdaptMetrics ( Double percentBusy , Long iops , StorageHADomain haDomain , String statisticTime , boolean usingCIMTime ) { StorageSystem system = _dbClient . queryObject ( StorageSystem . class , haDomain . getStorageDeviceURI ( ) ) ; StringMap dbMetrics = haDomain . getMetrics ( ) ; Long sampleTime = ( usingCIMTime ) ? convertCIMStatisticTime ( statisticTime ) : Long . valueOf ( statisticTime ) ; _log . info ( String . format ( "FEAdaptMetrics %s %s percentBusy %f  iops %d sampleTime %d" , haDomain . getAdapterName ( ) , haDomain . getNativeGuid ( ) , percentBusy , iops , sampleTime ) ) ; Long iopsValue = MetricsKeys . getLong ( MetricsKeys . iopsValue , dbMetrics ) ; Long iopsDelta = iops - iopsValue ; percentBusy *= 10.0 ; if ( percentBusy >= 0.0 ) { computePercentBusyAverages ( percentBusy . longValue ( ) , 1000L , iopsDelta , dbMetrics , haDomain . getNativeGuid ( ) , haDomain . getAdapterName ( ) + " [cpu]" , sampleTime , system ) ; } MetricsKeys . putLong ( MetricsKeys . iopsValue , iops , dbMetrics ) ; MetricsKeys . putLong ( MetricsKeys . lastSampleTime , sampleTime , dbMetrics ) ; haDomain . setMetrics ( dbMetrics ) ; _dbClient . persistObject ( haDomain ) ; }
process a cpu metric sample . in this method , the cpu percent busy is passed directly as a double .
