public final class SeverityLevelCounter extends Object implements AuditListener
AuditEvents
of a given severity have been generated.Constructor and Description |
---|
SeverityLevelCounter(SeverityLevel aLevel)
Creates a new counter.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(AuditEvent aEvt)
Notify that an audit error was discovered on a specific file.
|
void |
addException(AuditEvent aEvt,
Throwable aThrowable)
Notify that an exception happened while performing audit.
|
void |
auditFinished(AuditEvent aEvt)
Notify that the audit is finished.
|
void |
auditStarted(AuditEvent aEvt)
Notify that the audit is about to start.
|
void |
fileFinished(AuditEvent aEvt)
Notify that audit is finished on a specific file.
|
void |
fileStarted(AuditEvent aEvt)
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 aLevel)
aLevel
- the severity level events need to have, must be non-null.public void addError(AuditEvent aEvt)
addError
in interface AuditListener
aEvt
- the event detailspublic void addException(AuditEvent aEvt, Throwable aThrowable)
addException
in interface AuditListener
aEvt
- the event detailsaThrowable
- details of the exceptionpublic void auditStarted(AuditEvent aEvt)
auditStarted
in interface AuditListener
aEvt
- the event detailspublic void fileStarted(AuditEvent aEvt)
fileStarted
in interface AuditListener
aEvt
- the event detailspublic void auditFinished(AuditEvent aEvt)
auditFinished
in interface AuditListener
aEvt
- the event detailspublic void fileFinished(AuditEvent aEvt)
fileFinished
in interface AuditListener
aEvt
- the event detailspublic int getCount()
Copyright © 2001-2014. All Rights Reserved.