public class CountStatisticImpl extends StatisticImpl implements CountStatistic
enabled
Constructor and Description |
---|
CountStatisticImpl(CountStatisticImpl parent,
String name,
String description) |
CountStatisticImpl(String name,
String description) |
CountStatisticImpl(String name,
String unit,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
add(long amount) |
protected void |
appendFieldDescription(StringBuffer buffer) |
void |
decrement() |
long |
getCount() |
double |
getFrequency() |
CountStatisticImpl |
getParent() |
double |
getPeriod() |
void |
increment() |
void |
reset()
Reset the statistic
|
void |
setCount(long count) |
void |
setParent(CountStatisticImpl parent) |
void |
subtract(long amount) |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
public CountStatisticImpl(CountStatisticImpl parent, String name, String description)
public CountStatisticImpl(String name, String description)
public CountStatisticImpl(String name, String unit, String description)
public void reset()
Resettable
reset
in interface Resettable
reset
in class StatisticImpl
public long getCount()
getCount
in interface CountStatistic
public void setCount(long count)
public void add(long amount)
public void increment()
public void subtract(long amount)
public void decrement()
public CountStatisticImpl getParent()
public void setParent(CountStatisticImpl parent)
protected void appendFieldDescription(StringBuffer buffer)
appendFieldDescription
in class StatisticImpl
public double getPeriod()
public double getFrequency()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.