| Package | Description |
|---|---|
| org.jivesoftware.database |
Database connection code.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and 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 type
|
static long |
ProfiledConnection.getTotalQueryTime(ProfiledConnection.Type type)
Returns the total amount of time in milliseconds spent doing a particular
type of query.
|
Copyright © 2003–2020 Ignite Realtime. All rights reserved.