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, updateSampleTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLastSampleTime, getName, getStartTime, getUnitpublic CountStatisticImpl(CountStatisticImpl parent, String name, String description)
public CountStatisticImpl(String name, String description)
public CountStatisticImpl(String name, String unit, String description)
public void reset()
Resettablereset in interface Resettablereset in class StatisticImplpublic long getCount()
getCount in interface CountStatisticpublic 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 StatisticImplpublic double getPeriod()
public double getFrequency()
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.