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
public abstract class SqlStatementEvent extends Event
Event concerning an SQL statement.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlStatementEvent.Purpose
Reason why Mondrian is executing this SQL statement.
-
Field Summary
Fields Modifier and Type Field Description Locus
locus
Locus of event.SqlStatementEvent.Purpose
purpose
Purpose of executing this SQL statement.String
sql
SQL text of statement.long
sqlStatementId
Identifier of the statement.
-
Constructor Summary
Constructors Constructor Description SqlStatementEvent(long timestamp, long sqlStatementId, Locus locus, String sql, SqlStatementEvent.Purpose purpose)
Creates a SqlStatementEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getStatementId()
-
Methods inherited from class mondrian.server.monitor.Event
setContextMap
-
-
-
-
Field Detail
-
sqlStatementId
public final long sqlStatementId
Identifier of the statement. Unique for the lifetime of the JVM.
-
locus
public final Locus locus
Locus of event. From this you can glean the statement and session.
-
sql
public final String sql
SQL text of statement.
-
purpose
public final SqlStatementEvent.Purpose purpose
Purpose of executing this SQL statement.
-
-
Constructor Detail
-
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
-
-