Search in sources :

Example 1 with ExcludedMetricTargets

use of com.hazelcast.internal.metrics.ExcludedMetricTargets in project hazelcast by hazelcast.

the class SourceMetadata method getTypeExcludedTarget.

private Collection<MetricTarget> getTypeExcludedTarget(Class clazz) {
    Collection<MetricTarget> typeExclusions;
    ExcludedMetricTargets targetsAnnotation = (ExcludedMetricTargets) clazz.getAnnotation(ExcludedMetricTargets.class);
    if (targetsAnnotation != null) {
        typeExclusions = unmodifiableList(asList(targetsAnnotation.value()));
    } else {
        typeExclusions = emptyList();
    }
    return typeExclusions;
}
Also used : MetricTarget(com.hazelcast.internal.metrics.MetricTarget) ExcludedMetricTargets(com.hazelcast.internal.metrics.ExcludedMetricTargets)

Aggregations

ExcludedMetricTargets (com.hazelcast.internal.metrics.ExcludedMetricTargets)1 MetricTarget (com.hazelcast.internal.metrics.MetricTarget)1