com.commsen.stopwatch
Interface Report

All Superinterfaces:
java.lang.Comparable, java.io.Serializable
All Known Implementing Classes:
DefaultStopwatchReport, LoadStopwatchReport, MemoryStopwatchReport

public interface Report
extends java.io.Serializable, java.lang.Comparable

Basic stopwatch report. All reports generated by stopwatch storages should implement this interface.

Author:
Milen Dyankov

Method Summary
 double getAverageTime()
          The average of all completed measurements for this label and/or group
 long getCount()
          The number of all completed measurements for this label and/or group
 java.lang.String getGroup()
          Information about the group for which this report was generated.
 java.lang.String getLabel()
          Information about the label for which this report was generated.
 double getMaxTime()
          The maximal of all completed measurements for this label and/or group
 double getMinTime()
          The minimal of all completed measurements for this label and/or group
 double getTotalTime()
          The sum of all completed measurements for this label and/or group
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getGroup

java.lang.String getGroup()
Information about the group for which this report was generated. If null then this is summary report for given lebel (as returned by getLabel()) in all groups.

Returns:
the name of the group

getLabel

java.lang.String getLabel()
Information about the label for which this report was generated. If null then this is summary report for all lebels in given group (as returned by getGroup()).

Returns:
the label

getMinTime

double getMinTime()
The minimal of all completed measurements for this label and/or group

Returns:
minimal of all times measured

getMaxTime

double getMaxTime()
The maximal of all completed measurements for this label and/or group

Returns:
maximal of all completed measurements

getAverageTime

double getAverageTime()
The average of all completed measurements for this label and/or group

Returns:
average of all completed measurements

getTotalTime

double getTotalTime()
The sum of all completed measurements for this label and/or group

Returns:
sum of all completed measurements

getCount

long getCount()
The number of all completed measurements for this label and/or group

Returns:
number of all completed measurements


Copyright © 2006-2008 Commsen International. All Rights Reserved.