public class MetricWhiteBlackList extends Object implements com.google.common.base.Predicate<String>
| Constructor and Description |
|---|
MetricWhiteBlackList(String pointLineWhiteListRegex,
String pointLineBlackListRegex,
String portName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(String pointLine)
Check to see if the given point line or metric passes the white and black list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, isEqual, negate, orpublic MetricWhiteBlackList(@Nullable String pointLineWhiteListRegex, @Nullable String pointLineBlackListRegex, String portName)
pointLineWhiteListRegex - the white list regular expression.pointLineBlackListRegex - the black list regular expressionportName - the port used as metric name (validationRegex.point-rejected [port=portName])public boolean apply(String pointLine)
pointLine - the line to checkCopyright © 2018. All rights reserved.