Package com.microsoft.gctoolkit.parser
Class SafepointParseRule
- java.lang.Object
-
- com.microsoft.gctoolkit.parser.SafepointParseRule
-
public class SafepointParseRule extends Object
Class that tracks whether a log entry was parsed successfully (hit), or not (miss) and captures the origin of that hit or miss.
-
-
Constructor Summary
Constructors Constructor Description SafepointParseRule(String pattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConcurrentMap<SafepointParseRule,AtomicInteger>getHits()static ConcurrentMap<SafepointParseRule,AtomicInteger>getMisses()static ConcurrentMap<SafepointParseRule,Throwable>getOrigin()SafepointTraceparse(String trace)TODO #155 This painful pattern of returning a null which gets checked by the caller could be replaced by use of OptionalStringtoString()
-
-
-
Constructor Detail
-
SafepointParseRule
public SafepointParseRule(String pattern)
-
-
Method Detail
-
parse
public SafepointTrace parse(String trace)
TODO #155 This painful pattern of returning a null which gets checked by the caller could be replaced by use of Optional- Parameters:
trace- The trace to match against the pattern- Returns:
- A trace with a valid matcher or null
-
getHits
public static ConcurrentMap<SafepointParseRule,AtomicInteger> getHits()
-
getMisses
public static ConcurrentMap<SafepointParseRule,AtomicInteger> getMisses()
-
getOrigin
public static ConcurrentMap<SafepointParseRule,Throwable> getOrigin()
-
-