Class 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 Detail

      • GCParseRule

        public GCParseRule​(String name,
                           String pattern)
    • 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()