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