Package org.apache.cassandra.audit
Class BinAuditLogger
- java.lang.Object
-
- org.apache.cassandra.audit.BinAuditLogger
-
- All Implemented Interfaces:
IAuditLogger
public class BinAuditLogger extends java.lang.Object implements IAuditLogger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BinAuditLogger.Message
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AUDITLOG_MESSAGE
static java.lang.String
AUDITLOG_TYPE
static long
CURRENT_VERSION
-
Constructor Summary
Constructors Constructor Description BinAuditLogger(java.util.Map<java.lang.String,java.lang.String> params)
BinAuditLogger(AuditLogOptions auditLoggingOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
void
log(AuditLogEntry auditLogEntry)
Logs AuditLogEntry.void
stop()
Stop the audit log leaving behind any generated files.
-
-
-
Field Detail
-
CURRENT_VERSION
public static final long CURRENT_VERSION
- See Also:
- Constant Field Values
-
AUDITLOG_TYPE
public static final java.lang.String AUDITLOG_TYPE
- See Also:
- Constant Field Values
-
AUDITLOG_MESSAGE
public static final java.lang.String AUDITLOG_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BinAuditLogger
public BinAuditLogger(AuditLogOptions auditLoggingOptions)
-
BinAuditLogger
public BinAuditLogger(java.util.Map<java.lang.String,java.lang.String> params)
-
-
Method Detail
-
stop
public void stop()
Stop the audit log leaving behind any generated files.- Specified by:
stop
in interfaceIAuditLogger
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceIAuditLogger
-
log
public void log(AuditLogEntry auditLogEntry)
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
-
-