use of org.apache.storm.metric.api.StateMetric in project storm by apache.
the class BuiltinMetricsUtil method registerQueueMetrics.
public static void registerQueueMetrics(Map queues, Map stormConf, TopologyContext context) {
for (Object o : queues.entrySet()) {
Map.Entry entry = (Map.Entry) o;
String name = "__" + entry.getKey();
IMetric metric = new StateMetric((IStatefulObject) entry.getValue());
registerMetric(name, metric, stormConf, context);
}
}
Aggregations