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