Class ProcessUnit.ConjunctiveLogRegExConsumer

java.lang.Object
de.iip_ecosphere.platform.configuration.maven.ProcessUnit.ConjunctiveLogRegExConsumer
All Implemented Interfaces:
Consumer<Pattern>
Enclosing class:
ProcessUnit

private static class ProcessUnit.ConjunctiveLogRegExConsumer extends Object implements Consumer<Pattern>
Consumes matching log regEx until all required are matched. Informs then the associated process unit.
Author:
Holger Eichelberger, SSE
  • Field Details

    • requiredPatterns

      private List<Pattern> requiredPatterns
    • patterns

      private Set<Pattern> patterns
    • unit

      private ProcessUnit unit
    • notifyByLogMatch

      private boolean notifyByLogMatch
  • Constructor Details

    • ConjunctiveLogRegExConsumer

      ConjunctiveLogRegExConsumer(List<Pattern> patterns, ProcessUnit unit, boolean notifyByLogMatch)
      Creates a consumer.
      Parameters:
      patterns - the patterns that must be matched; may be null or empty for any, i.e., unit will never be informed then
      unit - the process unit instance
      notifyByLogMatch - whether the listener in unit shall be informed on a conjunctive match
  • Method Details