public class MetricsComponent extends Object implements MetricsComponentRegistry
Constructor and Description |
---|
MetricsComponent(String newName)
Constructs a component from a name.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Fetches the name of the Component.
|
MetricsFeature |
registerFeature(String featureName)
Registers a Feature for this component.
|
public MetricsComponent(String newName)
newName
- name of the componentpublic String getName()
MetricsComponentRegistry
getName
in interface MetricsComponentRegistry
public MetricsFeature registerFeature(String featureName)
MetricsComponentRegistry
registerFeature
in interface MetricsComponentRegistry
featureName
- name of the Feature to register