org.ow2.frascati.intent.bench
Class BenchStatistics

java.lang.Object
  extended by org.ow2.frascati.intent.bench.BenchStatistics
All Implemented Interfaces:
Report, Statistics

public class BenchStatistics
extends java.lang.Object
implements Report, Statistics

Simple bench implementation component that provides Report and Statistics services.

Version:
$Revision$
Author:
Nicolas Dolet

Field Summary
protected  java.util.Map<Component,java.lang.Long> components
          Benchmarked components
 
Constructor Summary
BenchStatistics()
           
 
Method Summary
 java.lang.String getStats()
          Get statistics of a FraSCAti benchmark
 void report(Component c, long executionTime)
          Report benchmark statistics of a component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

protected java.util.Map<Component,java.lang.Long> components
Benchmarked components

Constructor Detail

BenchStatistics

public BenchStatistics()
Method Detail

report

public void report(Component c,
                   long executionTime)
Description copied from interface: Report
Report benchmark statistics of a component

Specified by:
report in interface Report
Parameters:
c - the component benchmarked
executionTime - the elapsed execution time for c
See Also:
Report.report(Component, long)

getStats

public java.lang.String getStats()
Description copied from interface: Statistics
Get statistics of a FraSCAti benchmark

Specified by:
getStats in interface Statistics
Returns:
statDescription a string representing the benchmark
See Also:
Statistics.getStats()


Copyright © 2010 OW2 Consortium. All Rights Reserved.