public final class SeverityLevelCounter extends Object implements AuditListener
AuditEvents
of a given severity have been generated.Constructor and Description |
---|
SeverityLevelCounter(SeverityLevel level)
Creates a new counter.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(AuditEvent evt)
Notify that an audit error was discovered on a specific file.
|
void |
addException(AuditEvent evt,
Throwable throwable)
Notify that an exception happened while performing audit.
|
void |
auditFinished(AuditEvent evt)
Notify that the audit is finished.
|
void |
auditStarted(AuditEvent evt)
Notify that the audit is about to start.
|
void |
fileFinished(AuditEvent evt)
Notify that audit is finished on a specific file.
|
void |
fileStarted(AuditEvent evt)
Notify that audit is about to start on a specific file.
|
int |
getCount()
Returns the number of counted events since audit started.
|
public SeverityLevelCounter(SeverityLevel level)
level
- the severity level events need to have, must be non-null.public void addError(AuditEvent evt)
addError
in interface AuditListener
evt
- the event detailspublic void addException(AuditEvent evt, Throwable throwable)
addException
in interface AuditListener
evt
- the event detailsthrowable
- details of the exceptionpublic void auditStarted(AuditEvent evt)
auditStarted
in interface AuditListener
evt
- the event detailspublic void fileStarted(AuditEvent evt)
fileStarted
in interface AuditListener
evt
- the event detailspublic void auditFinished(AuditEvent evt)
auditFinished
in interface AuditListener
evt
- the event detailspublic void fileFinished(AuditEvent evt)
fileFinished
in interface AuditListener
evt
- the event detailspublic int getCount()
Copyright © 2001–2015. All rights reserved.