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 |
setParent(SizeStatisticImpl parent) |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTime
public SizeStatisticImpl(String name, String description)
public SizeStatisticImpl(SizeStatisticImpl parent, String name, String description)
public SizeStatisticImpl(String name, String unit, String description)
public void reset()
Resettable
reset
in interface Resettable
reset
in class StatisticImpl
public long getCount()
public void addSize(long size)
public long getMaxSize()
public long getMinSize()
public long getTotalSize()
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 StatisticImpl
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.