Package org.apache.cassandra.audit
Class AuditLogEntry.Builder
- java.lang.Object
-
- org.apache.cassandra.audit.AuditLogEntry.Builder
-
- Enclosing class:
- AuditLogEntry
public static class AuditLogEntry.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(AuditLogEntry entry)
Builder(AuditLogEntryType type)
Builder(QueryState queryState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendToOperation(java.lang.String str)
AuditLogEntry
build()
AuditLogEntry.Builder
setBatch(java.util.UUID batch)
AuditLogEntry.Builder
setKeyspace(java.lang.String keyspace)
AuditLogEntry.Builder
setKeyspace(CQLStatement statement)
AuditLogEntry.Builder
setKeyspace(QueryState queryState, CQLStatement statement)
AuditLogEntry.Builder
setOperation(java.lang.String operation)
AuditLogEntry.Builder
setOptions(QueryOptions options)
AuditLogEntry.Builder
setScope(CQLStatement statement)
AuditLogEntry.Builder
setTimestamp(long timestampMillis)
AuditLogEntry.Builder
setType(AuditLogEntryType type)
AuditLogEntry.Builder
setUser(java.lang.String user)
-
-
-
Constructor Detail
-
Builder
public Builder(QueryState queryState)
-
Builder
public Builder(AuditLogEntry entry)
-
Builder
public Builder(AuditLogEntryType type)
-
-
Method Detail
-
setType
public AuditLogEntry.Builder setType(AuditLogEntryType type)
-
setUser
public AuditLogEntry.Builder setUser(java.lang.String user)
-
setBatch
public AuditLogEntry.Builder setBatch(java.util.UUID batch)
-
setTimestamp
public AuditLogEntry.Builder setTimestamp(long timestampMillis)
-
setKeyspace
public AuditLogEntry.Builder setKeyspace(QueryState queryState, @Nullable CQLStatement statement)
-
setKeyspace
public AuditLogEntry.Builder setKeyspace(java.lang.String keyspace)
-
setKeyspace
public AuditLogEntry.Builder setKeyspace(CQLStatement statement)
-
setScope
public AuditLogEntry.Builder setScope(CQLStatement statement)
-
setOperation
public AuditLogEntry.Builder setOperation(java.lang.String operation)
-
appendToOperation
public void appendToOperation(java.lang.String str)
-
setOptions
public AuditLogEntry.Builder setOptions(QueryOptions options)
-
build
public AuditLogEntry build()
-
-