public class CountStatisticImpl extends StatisticImpl implements javax.management.j2ee.statistics.CountStatistic
enabled| Constructor and Description |
|---|
CountStatisticImpl(CountStatisticImpl parent,
java.lang.String name,
java.lang.String description) |
CountStatisticImpl(java.lang.String name,
java.lang.String description) |
CountStatisticImpl(java.lang.String name,
java.lang.String unit,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long amount) |
protected void |
appendFieldDescription(java.lang.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, updateSampleTimepublic CountStatisticImpl(CountStatisticImpl parent, java.lang.String name, java.lang.String description)
public CountStatisticImpl(java.lang.String name,
java.lang.String description)
public CountStatisticImpl(java.lang.String name,
java.lang.String unit,
java.lang.String description)
public void reset()
Resettablereset in interface Resettablereset in class StatisticImplpublic long getCount()
getCount in interface javax.management.j2ee.statistics.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(java.lang.StringBuffer buffer)
appendFieldDescription in class StatisticImplpublic double getPeriod()
public double getFrequency()
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.