public class Metrics extends HashSet<String>
| Constructor and Description |
|---|
Metrics() |
| Modifier and Type | Method and Description |
|---|---|
long |
getMetric(String name)
Get the value of the metric, specified by the given symbolic name.
|
Iterator<String> |
iterator() |
boolean |
registerMetric(String name) |
boolean |
resetMetric(String name) |
void |
resetMetrics() |
boolean |
setMetric(String name,
long value) |
String |
toString() |
boolean |
unregisterMetric(String name) |
add, clear, clone, contains, isEmpty, remove, size, spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic void resetMetrics()
public boolean resetMetric(String name)
public long getMetric(String name)
name - symbolic name of the metricpublic boolean setMetric(String name, long value)
public boolean registerMetric(String name)
public boolean unregisterMetric(String name)
public String toString()
toString in class AbstractCollection<String>Copyright © 2022. All rights reserved.