Package org.apache.cassandra.audit
Class AuditEvent
- java.lang.Object
-
- org.apache.cassandra.diag.DiagnosticEvent
-
- org.apache.cassandra.audit.AuditEvent
-
public final class AuditEvent extends DiagnosticEvent
wrapper to expose audit events asDiagnosticEvent
s.
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.diag.DiagnosticEvent
threadName, timestamp
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditLogEntry
getEntry()
java.lang.String
getSource()
java.lang.Enum<?>
getType()
Returns event type discriminator.java.util.Map<java.lang.String,java.io.Serializable>
toMap()
Returns map of key-value pairs containing relevant event details.
-
-
-
Method Detail
-
getType
public java.lang.Enum<?> getType()
Description copied from class:DiagnosticEvent
Returns event type discriminator. This will usually be a enum value.- Specified by:
getType
in classDiagnosticEvent
-
getSource
public java.lang.String getSource()
-
getEntry
public AuditLogEntry getEntry()
-
toMap
public java.util.Map<java.lang.String,java.io.Serializable> toMap()
Description copied from class:DiagnosticEvent
Returns map of key-value pairs containing relevant event details. Values can be complex objects like other maps, but must be Serializable, as returned values may be consumed by external clients. It's strongly recommended to stick to standard Java classes to avoid distributing custom classes to clients and also prevent potential class versioning conflicts.- Specified by:
toMap
in classDiagnosticEvent
-
-