Class SeverityLevelCounter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicInteger count
      Keeps track of the number of counted events.
      private SeverityLevel level
      The severity level to watch out for.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addError​(AuditEvent event)
      Notify that an audit error was discovered on a specific file.
      void addException​(AuditEvent event, java.lang.Throwable throwable)
      Notify that an exception happened while performing audit.
      void auditFinished​(AuditEvent event)
      Notify that the audit is finished.
      void auditStarted​(AuditEvent event)
      Notify that the audit is about to start.
      void fileFinished​(AuditEvent event)
      Notify that audit is finished on a specific file.
      void fileStarted​(AuditEvent event)
      Notify that audit is about to start on a specific file.
      int getCount()
      Returns the number of counted events since audit started.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • count

        private final java.util.concurrent.atomic.AtomicInteger count
        Keeps track of the number of counted events.
    • Constructor Detail

      • SeverityLevelCounter

        public SeverityLevelCounter​(SeverityLevel level)
        Creates a new counter.
        Parameters:
        level - the severity level events need to have, must be non-null.
        Throws:
        java.lang.IllegalArgumentException - when level is null