Package org.apache.cassandra.audit
Class NoOpAuditLogger
java.lang.Object
org.apache.cassandra.audit.NoOpAuditLogger
- All Implemented Interfaces:
IAuditLogger
No-Op implementation of
IAuditLogger to be used as a default audit logger when audit logging is disabled.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidlog(AuditLogEntry logMessage) Logs AuditLogEntry.voidstop()Stop and cleanup any resources of IAuditLogger implementations.
-
Constructor Details
-
NoOpAuditLogger
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceIAuditLogger
-
log
Description copied from interface:IAuditLoggerLogs AuditLogEntry. This method might be called afterIAuditLogger.stop(), hence implementations need to handle the race condition.- Specified by:
login interfaceIAuditLogger
-
stop
public void stop()Description copied from interface:IAuditLoggerStop and cleanup any resources of IAuditLogger implementations. Please note thatIAuditLogger.log(AuditLogEntry)might be called after being stopped.- Specified by:
stopin interfaceIAuditLogger
-