public class MappingAggregatorsRouter extends java.lang.Object implements AggregatorsRouter
AggregatorsRouter implementation based on MapContainer
Metric ids in routing map may contain wildcards.
Routing map should contain route with key "__default".
Its possible to have only "__default" route.| Constructor and Description |
|---|
MappingAggregatorsRouter(MapContainer container)
Requires routing map
MapContainer with "__default" key route at least. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MetricsAggregator> |
getAggregatorsForMetric(java.lang.String metricIdentifier)
Matches list of aggregators either by key or by prefixed key.
|
public MappingAggregatorsRouter(MapContainer container)
MapContainer with "__default" key route at least.container - - routing map containerpublic java.util.List<MetricsAggregator> getAggregatorsForMetric(java.lang.String metricIdentifier)
getAggregatorsForMetric in interface AggregatorsRoutermetricIdentifier - - id of metric for that route is defined. Note: id is
already resolved one, in case if MetricsIdentifierResolver
had a match for metric identifier, identifier might be different from initial nameMetricsAggregator that accept metric with id metricIdentifier
if metricIdentifier didnt match any specific routes, default route aggregator list is returned.