Package mondrian.server.monitor
Class SqlStatementEndEvent
- java.lang.Object
-
- mondrian.server.monitor.Event
-
- mondrian.server.monitor.SqlStatementEvent
-
- mondrian.server.monitor.SqlStatementEndEvent
-
- All Implemented Interfaces:
Message
public class SqlStatementEndEvent extends SqlStatementEvent
Event created when Mondrian finishes executing an SQL statement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.server.monitor.SqlStatementEvent
SqlStatementEvent.Purpose
-
-
Field Summary
Fields Modifier and Type Field Description boolean
canceled
long
rowFetchCount
Throwable
throwable
-
Fields inherited from class mondrian.server.monitor.SqlStatementEvent
locus, purpose, sql, sqlStatementId
-
-
Constructor Summary
Constructors Constructor Description SqlStatementEndEvent(long timestamp, long sqlStatementId, Locus locus, String sql, SqlStatementEvent.Purpose purpose, long rowFetchCount, boolean canceled, Throwable throwable)
Creates a SqlStatementEndEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(Visitor<T> visitor)
Dispatches a call to the appropriatevisit
method onVisitor
.String
toString()
-
Methods inherited from class mondrian.server.monitor.SqlStatementEvent
getStatementId
-
Methods inherited from class mondrian.server.monitor.Event
setContextMap
-
-
-
-
Field Detail
-
rowFetchCount
public final long rowFetchCount
-
canceled
public final boolean canceled
-
throwable
public final Throwable throwable
-
-
Constructor Detail
-
SqlStatementEndEvent
public SqlStatementEndEvent(long timestamp, long sqlStatementId, Locus locus, String sql, SqlStatementEvent.Purpose purpose, long rowFetchCount, boolean canceled, Throwable throwable)
Creates a SqlStatementEndEvent.- Parameters:
timestamp
- TimestampsqlStatementId
- SQL statement idlocus
- Locus of eventsql
- SQLpurpose
- Why Mondrian is executing this statementrowFetchCount
- Number of rows fetchedcanceled
- Whether statement was canceledthrowable
- Throwable, or null if there was no error
-
-