public class Counter extends Object
Constructor and Description |
---|
Counter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getCounterLastReadValue()
return the last read value of counter.
|
long |
getCounterValue()
Gets current value of counter and rewrite CounterLastReadValue by current value.
|
long |
getCounterValue(boolean modifyLastReadValue)
Gets current counter value.
|
String |
getStat()
Returns the last and current count for specified statistic.
|
void |
incrementCounter()
Increment current counter value.
|
void |
reset()
Sets current counter value and CounterLastReadValue to 0 (zero).
|
public void incrementCounter()
public long getCounterLastReadValue()
public long getCounterValue()
public long getCounterValue(boolean modifyLastReadValue)
modifyLastReadValue
- true - CounterLastReadValue will be rewritten by current CounterValue
false - no change CounterLastReadValuepublic void reset()
public String getStat()
Copyright © 2020 OpenDaylight. All rights reserved.