Interface EventLog
-
- All Superinterfaces:
Comparable<EventLog>
public interface EventLog extends Comparable<EventLog>
EventLog describes an event log's attributes.- Since:
- 8.2
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventLogCategory
getCategory()
Optional<String>
getContext()
Optional<String>
getDetail()
EventLogLevel
getLevel()
String
getMessage()
Optional<String>
getScope()
Instant
getWhen()
Optional<String>
getWho()
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getWhen
Instant getWhen()
- Returns:
- the instant when the event occurred
-
getLevel
EventLogLevel getLevel()
- Returns:
- the level of this event's severity
-
getMessage
String getMessage()
- Returns:
- the message of the event.
-
getCategory
EventLogCategory getCategory()
- Returns:
- the category of the event
-
getWho
Optional<String> getWho()
- Returns:
- the name of the principal if the event occurred within a security context.
-
getContext
Optional<String> getContext()
- Returns:
- the context of the event (e.g. the name of a cache).
-
getScope
Optional<String> getScope()
- Returns:
- the scope of the event. If the event is specific to a node in the cluster, then this
will be the node's address. If the event is global to the entire cluster this will be
Optional.empty()
-
-