Package mondrian.server.monitor
Class Event
java.lang.Object
mondrian.server.monitor.Event
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
ConnectionEvent
,ExecutionEvent
,SqlStatementEvent
,StatementEvent
Base class for an event of interest.
This class, and subclasses, is an immutable but serializable.
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
WhenRolapUtil.MONITOR_LOGGER
is set to TRACE, this field will contain the stack of the code which created this event.final long
When the event occurred. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the MDC context into the current thread
-
Field Details
-
timestamp
public final long timestampWhen the event occurred. Milliseconds since the epoch UTC, just likeSystem.currentTimeMillis()
. -
stack
WhenRolapUtil.MONITOR_LOGGER
is set to TRACE, this field will contain the stack of the code which created this event.
-
-
Constructor Details
-
Event
public Event(long timestamp) Creates an Event.- Parameters:
timestamp
- Timestamp
-
-
Method Details
-
setContextMap
public void setContextMap()Description copied from interface:Message
Sets the MDC context into the current thread- Specified by:
setContextMap
in interfaceMessage
-