Package org.jivesoftware.database
Class ProfiledConnectionEntry
java.lang.Object
org.jivesoftware.database.ProfiledConnectionEntry
Simple class for tracking profiling stats for individual SQL queries.
- Author:
- Jive Software
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
getSql()
void
setCount
(int count) void
void
setTotalTime
(Duration totalTime)
-
Field Details
-
sql
The SQL query. -
count
public int countNumber of times the query has been executed. -
totalTime
The total time spent executing the query.
-
-
Constructor Details
-
ProfiledConnectionEntry
-
-
Method Details
-
getSql
-
setSql
-
getCount
public int getCount() -
setCount
public void setCount(int count) -
getTotalTime
-
setTotalTime
-
getAverageTime
-