Package org.onlab.metrics
Class MetricsComponent
- java.lang.Object
-
- org.onlab.metrics.MetricsComponent
-
- All Implemented Interfaces:
MetricsComponentRegistry
public class MetricsComponent extends java.lang.Object implements MetricsComponentRegistry
Components to register for metrics.
-
-
Constructor Summary
Constructors Constructor Description MetricsComponent(java.lang.String newName)
Constructs a component from a name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Fetches the name of the Component.MetricsFeature
registerFeature(java.lang.String featureName)
Registers a Feature for this component.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:MetricsComponentRegistry
Fetches the name of the Component.- Specified by:
getName
in interfaceMetricsComponentRegistry
- Returns:
- name of the Component
-
registerFeature
public MetricsFeature registerFeature(java.lang.String featureName)
Description copied from interface:MetricsComponentRegistry
Registers a Feature for this component.- Specified by:
registerFeature
in interfaceMetricsComponentRegistry
- Parameters:
featureName
- name of the Feature to register- Returns:
- Feature object that can be used when creating Metrics
-
-