Uses of Enum Class
org.jivesoftware.database.ProfiledConnection.Type
Packages that use ProfiledConnection.Type
-
Uses of ProfiledConnection.Type in org.jivesoftware.database
Methods in org.jivesoftware.database that return ProfiledConnection.TypeModifier and TypeMethodDescriptionstatic ProfiledConnection.TypeReturns the enum constant of this class with the specified name.static ProfiledConnection.Type[]ProfiledConnection.Type.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.jivesoftware.database with parameters of type ProfiledConnection.TypeModifier and TypeMethodDescriptionstatic voidProfiledConnection.addQuery(ProfiledConnection.Type type, String sql, Duration time) Adds a query.static DurationProfiledConnection.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 DurationProfiledConnection.getTotalQueryTime(ProfiledConnection.Type type) Returns the total amount of time in milliseconds spent doing a particular type of query.