public class StatisticsStub extends Statistics
Statistics.Record
Constructor and Description |
---|
StatisticsStub() |
Modifier and Type | Method and Description |
---|---|
void |
begin(java.lang.String groupId,
java.lang.Object key)
Starts measuring a time span until
Statistics.end(String, Object) is called with equal groupId
and key . |
void |
clear() |
void |
end(java.lang.String groupId,
java.lang.Object key) |
java.util.Set<java.lang.String> |
getGroupIds() |
java.util.List<Statistics.Record> |
getRecords(java.lang.String groupId) |
void |
record(java.lang.String groupId,
java.lang.Object key,
long value)
Records a single value (could be a time measured other than with
Statistics.begin(String, Object) and
Statistics.end(String, Object) , but could also be any other quantity over which later aggregation may
be performed. |
asCSV, asCSVMapByGroupId, asSV, asSVMapByGroupId, averageAsCVS, averageAsSV, getAverage, getInstance
public void begin(java.lang.String groupId, java.lang.Object key)
Statistics
Statistics.end(String, Object)
is called with equal groupId
and key
. Averages can be computed later for different keys with equal groupId
.begin
in class Statistics
public void end(java.lang.String groupId, java.lang.Object key)
end
in class Statistics
public void record(java.lang.String groupId, java.lang.Object key, long value)
Statistics
Statistics.begin(String, Object)
and
Statistics.end(String, Object)
, but could also be any other quantity over which later aggregation may
be performed.record
in class Statistics
public void clear()
clear
in class Statistics
public java.util.List<Statistics.Record> getRecords(java.lang.String groupId)
getRecords
in class Statistics
public java.util.Set<java.lang.String> getGroupIds()
getGroupIds
in class Statistics