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 classBinAuditLogger.Message
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUDITLOG_MESSAGEstatic java.lang.StringAUDITLOG_TYPEstatic longCURRENT_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 booleanisEnabled()voidlog(AuditLogEntry auditLogEntry)Logs AuditLogEntry.voidstop()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:
stopin interfaceIAuditLogger
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceIAuditLogger
-
log
public void log(AuditLogEntry auditLogEntry)
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
-
-