Package io.smallrye.metrics.setup.config
Class PropertyConfiguration
- java.lang.Object
-
- io.smallrye.metrics.setup.config.PropertyConfiguration
-
- Direct Known Subclasses:
PropertyArrayConfiguration,PropertyBooleanConfiguration,PropertySingleValueConfiguration
public abstract class PropertyConfiguration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringmetricName
-
Constructor Summary
Constructors Constructor Description PropertyConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMetricNameGrouping()static <T extends PropertyConfiguration>
Tmatches(Collection<T> configs, String metricName)Given a metric name and a collection of PropertyConfiguration objects, will return a match to the metric name if it exists, otherwise a null is returned.
-
-
-
Field Detail
-
metricName
protected String metricName
-
-
Method Detail
-
getMetricNameGrouping
public String getMetricNameGrouping()
-
matches
public static <T extends PropertyConfiguration> T matches(Collection<T> configs, String metricName)
Given a metric name and a collection of PropertyConfiguration objects, will return a match to the metric name if it exists, otherwise a null is returned.- Type Parameters:
T- extends PropertyConfiguration- Parameters:
configs- Collection of TmetricName- the metric name to find a matching configuration for- Returns:
- the matching configuration or null if non exists.
-
-