Uses of Class
org.jivesoftware.database.ProfiledConnection.Type
-
Packages that use ProfiledConnection.Type Package Description org.jivesoftware.database Database connection code. -
-
Uses of ProfiledConnection.Type in org.jivesoftware.database
Methods in org.jivesoftware.database that return ProfiledConnection.Type Modifier and Type Method Description static ProfiledConnection.Type
ProfiledConnection.Type. valueOf(String name)
Returns the enum constant of this type with the specified name.static ProfiledConnection.Type[]
ProfiledConnection.Type. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.jivesoftware.database with parameters of type ProfiledConnection.Type Modifier and Type Method Description static void
ProfiledConnection. addQuery(ProfiledConnection.Type type, String sql, long time)
Adds a query.static double
ProfiledConnection. getAverageQueryTime(ProfiledConnection.Type type)
Returns the average amount of time spent executing the specified type of query.static double
ProfiledConnection. getQueriesPerSecond(ProfiledConnection.Type type)
Returns the average number of queries of a certain type that have been performed per second since profiling started.static long
ProfiledConnection. getQueryCount(ProfiledConnection.Type type)
Returns the total number database queries of a particular type performed.static ProfiledConnectionEntry[]
ProfiledConnection. getSortedQueries(ProfiledConnection.Type type, boolean sortByTime)
Returns an array of sorted queries (as ProfiledConnectionEntry objects) by typestatic long
ProfiledConnection. getTotalQueryTime(ProfiledConnection.Type type)
Returns the total amount of time in milliseconds spent doing a particular type of query.
-