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.
  • Field Details

    • 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 Details

    • SqlStatementEvent

      public SqlStatementEvent(long timestamp, long sqlStatementId, Locus locus, String sql, SqlStatementEvent.Purpose purpose)
      Creates a SqlStatementEvent.
      Parameters:
      timestamp - Timestamp
      sqlStatementId - SQL statement id
      locus - Locus of event
      sql - SQL
      purpose - Why Mondrian is executing this statement
  • Method Details

    • getStatementId

      public long getStatementId()