Class OnLoadFilters
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.parser.filter.OnLoadFilters
-
public class OnLoadFilters extends Object
Utility methods for creatingIOnLoadFilter
s
-
-
Field Summary
Fields Modifier and Type Field Description static IOnLoadFilter
ALLOW_ALL_FILTER
-
Constructor Summary
Constructors Constructor Description OnLoadFilters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IOnLoadFilter
excludeEvents(Collection<String> excludedTypeIds)
Filter that disallows a specified set of events.static IOnLoadFilter
excludeEvents(Pattern excludeRegexp)
Filter that disallows a specified set of events.static IOnLoadFilter
includeEvents(Collection<String> includedTypeIds)
Filter that allows a specified set of events.static IOnLoadFilter
includeEvents(Pattern includeRegexp)
Filter that allows a specified set of events.
-
-
-
Field Detail
-
ALLOW_ALL_FILTER
public static final IOnLoadFilter ALLOW_ALL_FILTER
-
-
Method Detail
-
includeEvents
public static IOnLoadFilter includeEvents(Collection<String> includedTypeIds)
Filter that allows a specified set of events.- Parameters:
includedTypeIds
- the event type ids to include- Returns:
- a filter
-
excludeEvents
public static IOnLoadFilter excludeEvents(Collection<String> excludedTypeIds)
Filter that disallows a specified set of events.- Parameters:
excludedTypeIds
- the event type ids to exclude- Returns:
- a filter
-
includeEvents
public static IOnLoadFilter includeEvents(Pattern includeRegexp)
Filter that allows a specified set of events.- Parameters:
includeRegexp
- regular expression for which event type ids to include- Returns:
- a filter
-
excludeEvents
public static IOnLoadFilter excludeEvents(Pattern excludeRegexp)
Filter that disallows a specified set of events.- Parameters:
excludeRegexp
- regular expression for which event type ids to exclude- Returns:
- a filter
-
-