Package org.apache.zookeeper.audit
Class AuditEvent
- java.lang.Object
-
- org.apache.zookeeper.audit.AuditEvent
-
public final class AuditEvent extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuditEvent.FieldNamestatic classAuditEvent.Result
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>>getLogEntries()Gives all entries to be logged.AuditEvent.ResultgetResult()java.lang.StringgetValue(AuditEvent.FieldName fieldName)java.lang.StringtoString()Gives the string to be logged, ignores fields with null values
-
-
-
Method Detail
-
getLogEntries
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getLogEntries()
Gives all entries to be logged.- Returns:
- log entries
-
getValue
public java.lang.String getValue(AuditEvent.FieldName fieldName)
-
getResult
public AuditEvent.Result getResult()
-
toString
public java.lang.String toString()
Gives the string to be logged, ignores fields with null values- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-