public class AuditLogManager extends java.lang.Object implements QueryEvents.Listener, AuthEvents.Listener
Modifier and Type | Field and Description |
---|---|
static AuditLogManager |
instance |
Modifier and Type | Method and Description |
---|---|
void |
authFailure(QueryState state,
java.lang.Exception cause) |
void |
authSuccess(QueryState state) |
void |
batchFailure(BatchStatement.Type batchType,
java.util.List<? extends CQLStatement> statements,
java.util.List<java.lang.String> queries,
java.util.List<java.util.List<java.nio.ByteBuffer>> values,
QueryOptions options,
QueryState state,
java.lang.Exception cause) |
void |
batchSuccess(BatchStatement.Type batchType,
java.util.List<? extends CQLStatement> statements,
java.util.List<java.lang.String> queries,
java.util.List<java.util.List<java.nio.ByteBuffer>> values,
QueryOptions options,
QueryState state,
long queryTime,
Message.Response response) |
void |
disableAuditLog()
Disables AuditLog, designed to be invoked only via JMX/ Nodetool, not from anywhere else in the codepath.
|
void |
enable(AuditLogOptions auditLogOptions)
Enables AuditLog, designed to be invoked only via JMX/ Nodetool, not from anywhere else in the codepath.
|
void |
executeFailure(CQLStatement statement,
java.lang.String query,
QueryOptions options,
QueryState state,
java.lang.Exception cause) |
void |
executeSuccess(CQLStatement statement,
java.lang.String query,
QueryOptions options,
QueryState state,
long queryTime,
Message.Response response) |
IAuditLogger |
getLogger() |
void |
initialize() |
boolean |
isEnabled() |
void |
prepareFailure(CQLStatement stmt,
java.lang.String query,
QueryState state,
java.lang.Exception cause) |
void |
prepareSuccess(CQLStatement statement,
java.lang.String query,
QueryState state,
long queryTime,
ResultMessage.Prepared response) |
void |
queryFailure(CQLStatement stmt,
java.lang.String query,
QueryOptions options,
QueryState state,
java.lang.Exception cause) |
void |
querySuccess(CQLStatement statement,
java.lang.String query,
QueryOptions options,
QueryState state,
long queryTime,
Message.Response response) |
public static final AuditLogManager instance
public void initialize()
public IAuditLogger getLogger()
public boolean isEnabled()
public void disableAuditLog()
public void enable(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 querySuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)
querySuccess
in interface QueryEvents.Listener
public void queryFailure(CQLStatement stmt, java.lang.String query, QueryOptions options, QueryState state, java.lang.Exception cause)
queryFailure
in interface QueryEvents.Listener
public void executeSuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)
executeSuccess
in interface QueryEvents.Listener
public void executeFailure(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, java.lang.Exception cause)
executeFailure
in interface QueryEvents.Listener
public void batchSuccess(BatchStatement.Type batchType, java.util.List<? extends CQLStatement> statements, java.util.List<java.lang.String> queries, java.util.List<java.util.List<java.nio.ByteBuffer>> values, QueryOptions options, QueryState state, long queryTime, Message.Response response)
batchSuccess
in interface QueryEvents.Listener
public void batchFailure(BatchStatement.Type batchType, java.util.List<? extends CQLStatement> statements, java.util.List<java.lang.String> queries, java.util.List<java.util.List<java.nio.ByteBuffer>> values, QueryOptions options, QueryState state, java.lang.Exception cause)
batchFailure
in interface QueryEvents.Listener
public void prepareSuccess(CQLStatement statement, java.lang.String query, QueryState state, long queryTime, ResultMessage.Prepared response)
prepareSuccess
in interface QueryEvents.Listener
public void prepareFailure(@Nullable CQLStatement stmt, @Nullable java.lang.String query, QueryState state, java.lang.Exception cause)
prepareFailure
in interface QueryEvents.Listener
public void authSuccess(QueryState state)
authSuccess
in interface AuthEvents.Listener
public void authFailure(QueryState state, java.lang.Exception cause)
authFailure
in interface AuthEvents.Listener
Copyright © 2009-2021 The Apache Software Foundation