pankaj | 390abbc | 2014-10-01 17:01:05 -0700 | [diff] [blame] | 1 | package org.onlab.metrics; |
| 2 | |
| 3 | /** |
| 4 | * Registry Entry for Metrics Components. |
| 5 | */ |
| 6 | public interface MetricsComponentRegistry { |
Pavlin Radoslavov | df042bd | 2014-10-21 21:46:46 -0700 | [diff] [blame^] | 7 | /** |
| 8 | * Fetches the name of the Component. |
| 9 | * |
| 10 | * @return name of the Component |
| 11 | */ |
pankaj | 390abbc | 2014-10-01 17:01:05 -0700 | [diff] [blame] | 12 | String getName(); |
| 13 | |
Pavlin Radoslavov | df042bd | 2014-10-21 21:46:46 -0700 | [diff] [blame^] | 14 | /** |
| 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 | */ |
pankaj | 390abbc | 2014-10-01 17:01:05 -0700 | [diff] [blame] | 20 | MetricsFeature registerFeature(String featureName); |
| 21 | } |