Package org.apache.hadoop.metrics2
Class MetricsFilter
java.lang.Object
org.apache.hadoop.metrics2.MetricsFilter
- All Implemented Interfaces:
MetricsPlugin
- Direct Known Subclasses:
AbstractPatternFilter
The metrics filter interface. The MetricsFilter objects can be used either to
filter the metrics from
MetricsSources or to filter metrics per
MetricsSink.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanaccepts(Iterable<MetricsTag> tags) Whether to accept the tagsabstract booleanWhether to accept the namebooleanaccepts(MetricsRecord record) Whether to accept the recordabstract booleanaccepts(MetricsTag tag) Whether to accept the tagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.metrics2.MetricsPlugin
init
-
Constructor Details
-
MetricsFilter
public MetricsFilter()
-
-
Method Details
-
accepts
Whether to accept the name- Parameters:
name- to filter on- Returns:
- true to accept; false otherwise.
-
accepts
Whether to accept the tag- Parameters:
tag- to filter on- Returns:
- true to accept; false otherwise
-
accepts
Whether to accept the tags- Parameters:
tags- to filter on- Returns:
- true to accept; false otherwise
-
accepts
Whether to accept the record- Parameters:
record- to filter on- Returns:
- true to accept; false otherwise.
-