public class AuditLogManager
extends java.lang.Object
IAuditLogger
s at the same time, including the standard audit logger (auditLogger
and the full query logger (fullQueryLogger
.Modifier and Type | Method and Description |
---|---|
void |
configureFQL(java.nio.file.Path path,
java.lang.String rollCycle,
boolean blocking,
int maxQueueWeight,
long maxLogSize,
java.lang.String archiveCommand,
int maxArchiveRetries) |
void |
disableAuditLog()
Disables AuditLog, designed to be invoked only via JMX/ Nodetool, not from anywhere else in the codepath.
|
void |
disableFQL() |
void |
enableAuditLog(AuditLogOptions auditLogOptions)
Enables AuditLog, designed to be invoked only via JMX/ Nodetool, not from anywhere else in the codepath.
|
static AuditLogManager |
getInstance() |
IAuditLogger |
getLogger() |
boolean |
isAuditingEnabled() |
boolean |
isLoggingEnabled() |
void |
log(AuditLogEntry logEntry)
Logs AudigLogEntry to both FQL and standard audit logger
|
void |
log(AuditLogEntry logEntry,
java.lang.Exception e) |
void |
logBatch(BatchStatement.Type type,
java.util.List<java.lang.Object> queryOrIdList,
java.util.List<java.util.List<java.nio.ByteBuffer>> values,
java.util.List<QueryHandler.Prepared> prepared,
QueryOptions options,
QueryState state,
long queryStartTimeMillis)
Logs Batch queries to both FQL and standard audit logger.
|
void |
resetFQL(java.lang.String fullQueryLogPath) |
public static AuditLogManager getInstance()
public IAuditLogger getLogger()
public boolean isAuditingEnabled()
public boolean isLoggingEnabled()
public void log(AuditLogEntry logEntry)
logEntry
- AuditLogEntry to be loggedpublic void log(AuditLogEntry logEntry, java.lang.Exception e)
public void logBatch(BatchStatement.Type type, java.util.List<java.lang.Object> queryOrIdList, java.util.List<java.util.List<java.nio.ByteBuffer>> values, java.util.List<QueryHandler.Prepared> prepared, QueryOptions options, QueryState state, long queryStartTimeMillis)
public void disableAuditLog()
public void enableAuditLog(AuditLogOptions auditLogOptions) throws ConfigurationException
auditLogOptions
- AuditLogOptions to be used for enabling AuditLogConfigurationException
- It can throw configuration exception when provided logger class does not exist in the classpathpublic void configureFQL(java.nio.file.Path path, java.lang.String rollCycle, boolean blocking, int maxQueueWeight, long maxLogSize, java.lang.String archiveCommand, int maxArchiveRetries)
public void resetFQL(java.lang.String fullQueryLogPath)
public void disableFQL()
Copyright © 2009-2019 The Apache Software Foundation