Package org.apache.cassandra.audit
Class DiagnosticEventAuditLogger
- java.lang.Object
-
- org.apache.cassandra.audit.DiagnosticEventAuditLogger
-
- All Implemented Interfaces:
IAuditLogger
public class DiagnosticEventAuditLogger extends java.lang.Object implements IAuditLogger
-
-
Constructor Summary
Constructors Constructor Description DiagnosticEventAuditLogger(java.util.Map<java.lang.String,java.lang.String> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
void
log(AuditLogEntry logMessage)
Logs AuditLogEntry.void
stop()
Stop and cleanup any resources of IAuditLogger implementations.
-
-
-
Method Detail
-
log
public void log(AuditLogEntry logMessage)
Description copied from interface:IAuditLogger
Logs AuditLogEntry. This method might be called afterIAuditLogger.stop()
, hence implementations need to handle the race condition.- Specified by:
log
in interfaceIAuditLogger
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceIAuditLogger
-
stop
public void stop()
Description copied from interface:IAuditLogger
Stop and cleanup any resources of IAuditLogger implementations. Please note thatIAuditLogger.log(AuditLogEntry)
might be called after being stopped.- Specified by:
stop
in interfaceIAuditLogger
-
-