org.apache.cocoon.profiling.statistics
Class ReportImpl

java.lang.Object
  extended by org.apache.cocoon.profiling.statistics.ReportImpl
All Implemented Interfaces:
Report

public class ReportImpl
extends Object
implements Report

Since:
2.1.10
Version:
$Id: ReportImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  long accumulated
           
protected  StringBuffer buffer
           
protected  String category
           
protected  int count
           
protected  long last
           
protected  long max
           
protected  long min
           
 
Constructor Summary
ReportImpl(String category)
           
 
Method Summary
 void add(Statistics stat)
           
 String getAll()
           
 long getAverage()
           
 String getCategory()
           
 int getCount()
           
 long getLast()
           
 long getMax()
           
 long getMin()
           
protected  String getTime(long msecs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

protected int count

min

protected long min

max

protected long max

accumulated

protected long accumulated

last

protected long last

category

protected String category

buffer

protected StringBuffer buffer
Constructor Detail

ReportImpl

public ReportImpl(String category)
Method Detail

add

public void add(Statistics stat)

getTime

protected String getTime(long msecs)

getAverage

public long getAverage()
Specified by:
getAverage in interface Report
See Also:
Report.getAverage()

getCategory

public String getCategory()
Specified by:
getCategory in interface Report
See Also:
Report.getCategory()

getCount

public int getCount()
Specified by:
getCount in interface Report
See Also:
Report.getCount()

getMax

public long getMax()
Specified by:
getMax in interface Report
See Also:
Report.getMax()

getMin

public long getMin()
Specified by:
getMin in interface Report
See Also:
Report.getMin()

getLast

public long getLast()
Specified by:
getLast in interface Report
See Also:
Report.getLast()

getAll

public String getAll()
Specified by:
getAll in interface Report
See Also:
Report.getAll()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.