org.apache.hadoop.metrics2.filter
Class RegexFilter

java.lang.Object
  extended by org.apache.hadoop.metrics2.MetricsFilter
      extended by org.apache.hadoop.metrics2.filter.AbstractPatternFilter
          extended by org.apache.hadoop.metrics2.filter.RegexFilter
All Implemented Interfaces:
MetricsPlugin

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class RegexFilter
extends org.apache.hadoop.metrics2.filter.AbstractPatternFilter

A regex pattern filter for metrics


Field Summary
 
Fields inherited from class org.apache.hadoop.metrics2.filter.AbstractPatternFilter
EXCLUDE_KEY, EXCLUDE_TAGS_KEY, INCLUDE_KEY, INCLUDE_TAGS_KEY
 
Constructor Summary
RegexFilter()
           
 
Method Summary
protected  Pattern compile(String s)
          Compile a string pattern in to a pattern object
 
Methods inherited from class org.apache.hadoop.metrics2.filter.AbstractPatternFilter
accepts, accepts, accepts, init
 
Methods inherited from class org.apache.hadoop.metrics2.MetricsFilter
accepts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexFilter

public RegexFilter()
Method Detail

compile

protected Pattern compile(String s)
Description copied from class: org.apache.hadoop.metrics2.filter.AbstractPatternFilter
Compile a string pattern in to a pattern object

Specified by:
compile in class org.apache.hadoop.metrics2.filter.AbstractPatternFilter
Parameters:
s - the string pattern to compile
Returns:
the compiled pattern object


Copyright © 2012 Apache Software Foundation. All Rights Reserved.