blob: a28ddc80a47c8d6f415810bb9efb4b9ec6433461 [file] [log] [blame]
pankaj390abbc2014-10-01 17:01:05 -07001package org.onlab.metrics;
2
3/**
4 * Registry Entry for Metrics Components.
5 */
6public interface MetricsComponentRegistry {
Pavlin Radoslavovdf042bd2014-10-21 21:46:46 -07007 /**
8 * Fetches the name of the Component.
9 *
10 * @return name of the Component
11 */
pankaj390abbc2014-10-01 17:01:05 -070012 String getName();
13
Pavlin Radoslavovdf042bd2014-10-21 21:46:46 -070014 /**
15 * Registers a Feature for this component.
16 *
17 * @param featureName name of the Feature to register
18 * @return Feature object that can be used when creating Metrics
19 */
pankaj390abbc2014-10-01 17:01:05 -070020 MetricsFeature registerFeature(String featureName);
21}