protected void buildAbsoluteStats(String name,long value,long time) throws InterruptedException {
  List<XYDataItem> stats=statsCollection.getStats(name);
  if (stats == null) {
    stats=statsCollection.newStats(name,maxSeries);
  }
 else {
    XYDataItem data=new XYDataItem(time,value);
    statsCollection.lockForUpdate();
    try {
      stats.add(data);
      houseKeepStats(stats);
    }
  finally {
      statsCollection.releaseLock();
    }
    if (listeners != null) {
      StatsCollectionEvent event=new StatsCollectionEvent(name,data);
      for (      StatsCollectionListener listener : listeners) {
        if (listener.isEnabled()) {
          listener.statsCollected(event);
        }
      }
    }
  }
}

protected void buildAbsoluteStats ( String name , long value , long time ) throws InterruptedException { List < XYDataItem > stats = statsCollection . getStats ( name ) ; if ( stats == null ) { stats = statsCollection . newStats ( name , maxSeries ) ; } else { XYDataItem data = new XYDataItem ( time , value ) ; statsCollection . lockForUpdate ( ) ; try { stats . add ( data ) ; houseKeepStats ( stats ) ; } finally { statsCollection . releaseLock ( ) ; } if ( listeners != null ) { StatsCollectionEvent event = new StatsCollectionEvent ( name , data ) ; for ( StatsCollectionListener listener : listeners ) { if ( listener . isEnabled ( ) ) { listener . statsCollected ( event ) ; } } } } }
builds the absolute stats .
