public class Statistic
extends java.lang.Object
Statistic| 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(java.lang.String name,
java.lang.Object owner,
Statistic.UpdateMode updateMode)
Instantiates a new statistic.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getUpdateCount() |
long |
getValue() |
void |
increment() |
void |
reset() |
java.lang.String |
toString() |
void |
updateValue(long newValue) |
public Statistic(java.lang.String name,
java.lang.Object owner,
Statistic.UpdateMode updateMode)
name - name of statisticowner - ownerupdateMode - The statistic update mode.Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.