- java.lang.Object
-
- com.microsoft.gctoolkit.parser.GCParseRule
-
public class GCParseRule 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 GCParseRule(String name, String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()GCLogTraceparse(String trace)TODO This painful pattern of returning a null which gets checked by the caller could be replaced by use of Optional todo: for some reason the matcher is getting corrupted, synchronized helps! Need to sort out corruptionStringtoString()
-
-
-
Method Detail
-
parse
public GCLogTrace parse(String trace)
TODO This painful pattern of returning a null which gets checked by the caller could be replaced by use of Optional todo: for some reason the matcher is getting corrupted, synchronized helps! Need to sort out corruption- Parameters:
trace- The trace to match against the pattern- Returns:
- A trace with a valid matcher or null
-
getName
public String getName()
-
-