Package mondrian.server.monitor
Class SqlStatementEvent
java.lang.Object
mondrian.server.monitor.Event
mondrian.server.monitor.SqlStatementEvent
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
SqlStatementEndEvent
,SqlStatementExecuteEvent
,SqlStatementStartEvent
Event concerning an SQL statement.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Reason why Mondrian is executing this SQL statement. -
Field Summary
-
Constructor Summary
ConstructorDescriptionSqlStatementEvent
(long timestamp, long sqlStatementId, Locus locus, String sql, SqlStatementEvent.Purpose purpose) Creates a SqlStatementEvent. -
Method Summary
Methods inherited from class mondrian.server.monitor.Event
setContextMap
-
Field Details
-
sqlStatementId
public final long sqlStatementIdIdentifier of the statement. Unique for the lifetime of the JVM. -
locus
Locus of event. From this you can glean the statement and session. -
sql
SQL text of statement. -
purpose
Purpose of executing this SQL statement.
-
-
Constructor Details
-
SqlStatementEvent
public SqlStatementEvent(long timestamp, long sqlStatementId, Locus locus, String sql, SqlStatementEvent.Purpose purpose) Creates a SqlStatementEvent.- Parameters:
timestamp
- TimestampsqlStatementId
- SQL statement idlocus
- Locus of eventsql
- SQLpurpose
- Why Mondrian is executing this statement
-
-
Method Details
-
getStatementId
public long getStatementId()
-