public class SizeStatisticImpl extends StatisticImpl
enabled| Constructor and Description |
|---|
SizeStatisticImpl(SizeStatisticImpl parent,
String name,
String description) |
SizeStatisticImpl(String name,
String description) |
SizeStatisticImpl(String name,
String unit,
String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSize(long size) |
protected void |
appendFieldDescription(StringBuffer buffer) |
double |
getAveragePerSecond() |
double |
getAveragePerSecondExcludingMinMax() |
double |
getAverageSize() |
double |
getAverageSizeExcludingMinMax() |
long |
getCount() |
long |
getMaxSize() |
long |
getMinSize() |
SizeStatisticImpl |
getParent() |
long |
getTotalSize() |
void |
reset()
Reset the statistic
|
void |
setCount(long count) |
void |
setMaxSize(long size) |
void |
setMinSize(long size) |
void |
setParent(SizeStatisticImpl parent) |
void |
setTotalSize(long size)
Reset the total size to the new value
|
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTimepublic SizeStatisticImpl(String name, String description)
public SizeStatisticImpl(SizeStatisticImpl parent, String name, String description)
public SizeStatisticImpl(String name, String unit, String description)
public void reset()
Resettablereset in interface Resettablereset in class StatisticImplpublic long getCount()
public void addSize(long size)
public void setTotalSize(long size)
size - public long getMaxSize()
public void setMaxSize(long size)
public long getMinSize()
public void setMinSize(long size)
public long getTotalSize()
public void setCount(long count)
public double getAverageSize()
public double getAverageSizeExcludingMinMax()
public double getAveragePerSecond()
public double getAveragePerSecondExcludingMinMax()
public SizeStatisticImpl getParent()
public void setParent(SizeStatisticImpl parent)
protected void appendFieldDescription(StringBuffer buffer)
appendFieldDescription in class StatisticImplCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.