com.espertech.esper.metrics.codahale_metrics.metrics.core
Interface MetricPredicate


public interface MetricPredicate

A MetricPredicate is used to determine whether a metric should be included when sorting and filtering metrics. This is especially useful for limited metric reporting.


Field Summary
static MetricPredicate ALL
          A predicate which matches all inputs.
 
Method Summary
 boolean matches(MetricName name, Metric metric)
          Returns true if the metric matches the predicate.
 

Field Detail

ALL

static final MetricPredicate ALL
A predicate which matches all inputs.

Method Detail

matches

boolean matches(MetricName name,
                Metric metric)
Returns true if the metric matches the predicate.

Parameters:
name - the name of the metric
metric - the metric itself
Returns:
true if the predicate applies, false otherwise

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com