Interface ProfilerEvent

All Known Implementing Classes:
ProfilerEventImpl

public interface ProfilerEvent
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static byte NA
    Not available value.
    static byte TYPE_EXECUTE
    Profiler event for prepared statements being executed
    static byte TYPE_FETCH
    Profiler event for result sets being retrieved
    static byte TYPE_OBJECT_CREATION
    Profiler creating object type event
    static byte TYPE_PREPARE
    Profiler event for prepared statements being prepared
    static byte TYPE_QUERY
    Profiler event for a query being executed
    static byte TYPE_SLOW_QUERY
    Profiler event for slow query
    static byte TYPE_USAGE
    Profiler event for usage advisor
  • Method Summary

    Modifier and Type Method Description
    long getConnectionId()
    Returns the id of the associated connection (-1 for none).
    java.lang.String getDatabase()
    Returns the database the event occurred on.
    java.lang.String getDurationUnits()
    Returns the units for getEventDuration()
    java.lang.String getEventCreationPointAsString()
    Returns the description of where the event was created.
    long getEventCreationTime()
    Returns the time (in System.currentTimeMillis() form) when this event was created.
    long getEventDuration()
    Returns the duration of the event in milliseconds
    byte getEventType()
    Returns the event type
    java.lang.String getHostName()
    Returns the host name the event occurred on.
    java.lang.String getMessage()
    Returns the optional message for this event
    int getResultSetId()
    Returns the id of the associated result set (-1 for none).
    int getStatementId()
    Returns the id of the associated statement (-1 for none).
    byte[] pack()
    Creates a binary representation of this event.
  • Field Details

  • Method Details

    • getEventType

      byte getEventType()
      Returns the event type
      Returns:
      the event type
    • getHostName

      java.lang.String getHostName()
      Returns the host name the event occurred on.
      Returns:
      host name
    • getDatabase

      java.lang.String getDatabase()
      Returns the database the event occurred on.
      Returns:
      the database in use
    • getConnectionId

      long getConnectionId()
      Returns the id of the associated connection (-1 for none).
      Returns:
      the connection in use
    • getStatementId

      int getStatementId()
      Returns the id of the associated statement (-1 for none).
      Returns:
      the statement in use
    • getResultSetId

      int getResultSetId()
      Returns the id of the associated result set (-1 for none).
      Returns:
      the result set in use
    • getEventCreationTime

      long getEventCreationTime()
      Returns the time (in System.currentTimeMillis() form) when this event was created.
      Returns:
      the time this event was created
    • getEventDuration

      long getEventDuration()
      Returns the duration of the event in milliseconds
      Returns:
      the duration of the event in milliseconds
    • getDurationUnits

      java.lang.String getDurationUnits()
      Returns the units for getEventDuration()
      Returns:
      name of duration units
    • getEventCreationPointAsString

      java.lang.String getEventCreationPointAsString()
      Returns the description of where the event was created.
      Returns:
      a description of where this event was created.
    • getMessage

      java.lang.String getMessage()
      Returns the optional message for this event
      Returns:
      the message stored in this event
    • pack

      byte[] pack()
      Creates a binary representation of this event.
      Returns:
      a binary representation of this event