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 SummaryConstructors Constructor Description MetricsComponent(String newName)Constructs a component from a name.
 - 
Method SummaryAll 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- 
MetricsComponentpublic MetricsComponent(String newName) Constructs a component from a name.- Parameters:
- newName- name of the component
 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Description copied from interface:MetricsComponentRegistryFetches the name of the Component.- Specified by:
- getNamein interface- MetricsComponentRegistry
- Returns:
- name of the Component
 
 - 
registerFeaturepublic MetricsFeature registerFeature(String featureName) Description copied from interface:MetricsComponentRegistryRegisters a Feature for this component.- Specified by:
- registerFeaturein interface- MetricsComponentRegistry
- Parameters:
- featureName- name of the Feature to register
- Returns:
- Feature object that can be used when creating Metrics
 
 
- 
 
-