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