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)
AuditListeneraddError in interface AuditListenerevt - the event detailspublic void addException(AuditEvent evt, Throwable throwable)
AuditListeneraddException in interface AuditListenerevt - the event detailsthrowable - details of the exceptionpublic void auditStarted(AuditEvent evt)
AuditListenerauditStarted in interface AuditListenerevt - the event detailspublic void fileStarted(AuditEvent evt)
AuditListenerfileStarted in interface AuditListenerevt - the event detailspublic void auditFinished(AuditEvent evt)
AuditListenerauditFinished in interface AuditListenerevt - the event detailspublic void fileFinished(AuditEvent evt)
AuditListenerfileFinished in interface AuditListenerevt - the event detailspublic int getCount()
Copyright © 2001-2015. All Rights Reserved.