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.TypeProfiledConnection.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 voidProfiledConnection. addQuery(ProfiledConnection.Type type, String sql, long time)Adds a query.static doubleProfiledConnection. getAverageQueryTime(ProfiledConnection.Type type)Returns the average amount of time spent executing the specified type of query.static doubleProfiledConnection. getQueriesPerSecond(ProfiledConnection.Type type)Returns the average number of queries of a certain type that have been performed per second since profiling started.static longProfiledConnection. 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 longProfiledConnection. getTotalQueryTime(ProfiledConnection.Type type)Returns the total amount of time in milliseconds spent doing a particular type of query.
-