org.gridkit.jvmtool.stacktrace.analytics
Class BasicFilterFactory
java.lang.Object
org.gridkit.jvmtool.stacktrace.analytics.BasicFilterFactory
- Direct Known Subclasses:
- CachingFilterFactory
public class BasicFilterFactory
- extends Object
Default implementation of factory is producing thread safe filter
implementations.
See CachingFilterFactory for optimized single threaded version.
- Author:
- Alexey Ragozin (alexey.ragozin@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicFilterFactory
public BasicFilterFactory()
disjunction
public ThreadSnapshotFilter disjunction(ThreadSnapshotFilter... subfilters)
disjunction
public ThreadSnapshotFilter disjunction(Collection<ThreadSnapshotFilter> subfilters)
conjunction
public ThreadSnapshotFilter conjunction(ThreadSnapshotFilter... subfilters)
conjunction
public ThreadSnapshotFilter conjunction(Collection<ThreadSnapshotFilter> subfilters)
matcherConjunction
public StackFrameMatcher matcherConjunction(StackFrameMatcher... subfilters)
matcherConjunction
public StackFrameMatcher matcherConjunction(Collection<StackFrameMatcher> subfilters)
not
public ThreadSnapshotFilter not(ThreadSnapshotFilter filter)
followed
public ThreadSnapshotFilter followed(PositionalStackMatcher matcher,
ThreadSnapshotFilter filter)
frameFilter
public ThreadSnapshotFilter frameFilter(StackFrameMatcher matcher)
falseFilter
public ThreadSnapshotFilter falseFilter()
falseFrameMatcher
public StackFrameMatcher falseFrameMatcher()
trueFilter
public ThreadSnapshotFilter trueFilter()
threadStateMatter
public ThreadSnapshotFilter threadStateMatter(String matcher)
patternFrameMatcher
public StackFrameMatcher patternFrameMatcher(String... patterns)
patternFrameMatcher
public StackFrameMatcher patternFrameMatcher(Collection<String> patterns)
lastFrame
public PositionalStackMatcher lastFrame(StackFrameMatcher matcher)
firstFrame
public PositionalStackMatcher firstFrame(StackFrameMatcher matcher)
wildCardTranslate
protected static String wildCardTranslate(String pattern)
- GLOB pattern supports *, ** and ? wild cards.
Leading and trailing ** have special meaning, consecutive separator become optional.
Copyright © 2019. All Rights Reserved.