public class StatsImpl extends StatisticImpl implements Stats, Resettable
enabled
Constructor and Description |
---|
StatsImpl() |
StatsImpl(Set<StatisticImpl> set) |
Modifier and Type | Method and Description |
---|---|
protected void |
addStatistic(String name,
StatisticImpl statistic) |
Statistic |
getStatistic(String name) |
String[] |
getStatisticNames() |
Statistic[] |
getStatistics() |
void |
reset()
Reset the statistic
|
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTime
public StatsImpl()
public StatsImpl(Set<StatisticImpl> set)
public void reset()
Resettable
reset
in interface Resettable
reset
in class StatisticImpl
public Statistic getStatistic(String name)
getStatistic
in interface Stats
public String[] getStatisticNames()
getStatisticNames
in interface Stats
public Statistic[] getStatistics()
getStatistics
in interface Stats
protected void addStatistic(String name, StatisticImpl statistic)
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.