org.apache.cocoon.profiling.statistics
Class SimpleStatistics

java.lang.Object
  extended by org.apache.cocoon.profiling.statistics.SimpleStatistics
All Implemented Interfaces:
Statistics

public class SimpleStatistics
extends Object
implements Statistics

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

Field Summary
protected  String category
           
protected  long duration
           
 
Constructor Summary
SimpleStatistics(String category, long start)
           
 
Method Summary
 String getCategory()
          The category for the invocation.
 long getDuration()
          The duration of the invocation in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

duration

protected long duration

category

protected String category
Constructor Detail

SimpleStatistics

public SimpleStatistics(String category,
                        long start)
Method Detail

getDuration

public long getDuration()
Description copied from interface: Statistics
The duration of the invocation in milliseconds.

Specified by:
getDuration in interface Statistics
See Also:
Statistics.getDuration()

getCategory

public String getCategory()
Description copied from interface: Statistics
The category for the invocation.

Specified by:
getCategory in interface Statistics
See Also:
Statistics.getCategory()


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