Class ProfiledConnectionEntry

java.lang.Object
org.jivesoftware.database.ProfiledConnectionEntry

public class ProfiledConnectionEntry extends Object
Simple class for tracking profiling stats for individual SQL queries.
Author:
Jive Software
  • Field Details

    • sql

      public String sql
      The SQL query.
    • count

      public int count
      Number of times the query has been executed.
    • totalTime

      public Duration totalTime
      The total time spent executing the query.
  • Constructor Details

    • ProfiledConnectionEntry

      public ProfiledConnectionEntry(String sql)
  • Method Details

    • getSql

      public String getSql()
    • setSql

      public void setSql(String sql)
    • getCount

      public int getCount()
    • setCount

      public void setCount(int count)
    • getTotalTime

      public Duration getTotalTime()
    • setTotalTime

      public void setTotalTime(Duration totalTime)
    • getAverageTime

      public Duration getAverageTime()