public interface IMetric extends Cloneable
| Modifier and Type | Method and Description |
|---|---|
void |
add(long val)
Add a value to a metric and increase the counter.
|
void |
clear()
Reset the metric.
|
Object |
clone()
Make a clone of this object.
|
long |
getCount()
Gets the count of updates to this metric.
|
String |
getKey()
Returns the identifier.
|
long |
getTimer()
Returns the running time so far.
|
long |
getValue()
Gets the total value for this metric.
|
void |
setCount(long n)
Sets the counter value.
|
void |
setKey(String key)
Sets the ID.
|
void |
setValue(long n)
Sets the new value without changing the count.
|
IMetric |
stopTimer()
Sets the end time and returns a reference to this object.
|
void add(long val)
val - Value to addvoid clear()
Object clone() throws CloneNotSupportedException
CloneNotSupportedException - if it fails...String getKey()
setKey(java.lang.String)long getCount()
setCount(long)long getTimer()
IMetric stopTimer()
long getValue()
setValue(long)void setCount(long n)
n - New counter valuegetCount()void setValue(long n)
n - New valuegetValue()Copyright © 2006–2018 Esito AS. All rights reserved.