<T extends Metric> java.lang.String |
MetricStore.dumpMetricToJson(java.lang.Class<T> metricClass) |
Dumps JSON-serialized string of specific metric.
|
<T extends Metric> java.lang.Class<T> |
MetricStore.getMetricClassByName(java.lang.String className) |
Get the metric class by its name.
|
<T extends Metric> java.util.Map<java.lang.String,java.lang.Object> |
MetricStore.getMetricMap(java.lang.Class<T> metricClass) |
Fetch metric map by its metric class instance.
|
<T extends Metric> T |
MetricStore.getMetricWithId(java.lang.Class<T> metricClass,
java.lang.String id) |
Fetch metric by its metric class instance and its id.
|
<T extends Metric> T |
MetricStore.getOrCreateMetric(java.lang.Class<T> metricClass,
java.lang.String id) |
Same as getMetricWithId(), but if there is no such metric, it will try to create new metric object
using its constructor, which takes an id as a parameter.
|
<T extends Metric> void |
MetricStore.putMetric(T metric) |
Store a metric object.
|
<T extends Metric> void |
MetricStore.triggerBroadcast(java.lang.Class<T> metricClass,
java.lang.String id) |
Send changed metric data to MetricBroadcaster , which will broadcast it to
all active WebSocket sessions.
|