Modifier and Type | Class and Description |
---|---|
static class |
Statistic.UpdateMode
Statistics mode
VALUE - A statistic with this update mode is a simple value that is a straight forward
representation of the updated value.
DIFFERENCE - A statistic with this update mode is a value that represents the difference
between the last two recorded values (or the initial value if two updates have
not been recorded).
DELTA - A statistic with this update mode is a value that represents the delta
between the last two recorded values (or the initial value if two updates have
not been recorded).
|
Constructor and Description |
---|
Statistic(String name,
Object owner,
Statistic.UpdateMode updateMode)
Instantiates a new statistic.
|
Modifier and Type | Method and Description |
---|---|
void |
decrement() |
long |
getUpdateCount() |
long |
getValue() |
void |
increment() |
void |
reset() |
String |
toString() |
void |
updateValue(long newValue) |
public Statistic(String name, Object owner, Statistic.UpdateMode updateMode)
name
- name of statisticowner
- ownerupdateMode
- The statistic update mode.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.