public class StatisticImpl extends Object implements javax.management.j2ee.statistics.Statistic, Resettable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled |
| Constructor and Description |
|---|
StatisticImpl(String name,
String unit,
String description) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFieldDescription(StringBuffer buffer) |
String |
getDescription() |
long |
getLastSampleTime() |
String |
getName() |
long |
getStartTime() |
String |
getUnit() |
boolean |
isDoReset() |
boolean |
isEnabled() |
void |
reset()
Reset the statistic
|
void |
setDoReset(boolean doReset) |
void |
setEnabled(boolean enabled) |
String |
toString() |
protected void |
updateSampleTime() |
protected boolean enabled
public StatisticImpl(String name, String unit, String description)
public void reset()
Resettablereset in interface Resettableprotected void updateSampleTime()
public String getName()
getName in interface javax.management.j2ee.statistics.Statisticpublic String getUnit()
getUnit in interface javax.management.j2ee.statistics.Statisticpublic String getDescription()
getDescription in interface javax.management.j2ee.statistics.Statisticpublic long getStartTime()
getStartTime in interface javax.management.j2ee.statistics.Statisticpublic long getLastSampleTime()
getLastSampleTime in interface javax.management.j2ee.statistics.Statisticpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - the enabled to setpublic boolean isDoReset()
public void setDoReset(boolean doReset)
doReset - the doReset to setprotected void appendFieldDescription(StringBuffer buffer)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.