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()
MetricsComponentRegistrygetName in interface MetricsComponentRegistrypublic MetricsFeature registerFeature(java.lang.String featureName)
MetricsComponentRegistryregisterFeature in interface MetricsComponentRegistryfeatureName - name of the Feature to register