Skip to content

Commit

Permalink
Update Database Query Statistics page
Browse files Browse the repository at this point in the history
Mostly converts the page from scriptlet to JSTL.

Makes the tables that contain SQL wider

Other minor CSS tweaks.
  • Loading branch information
guusdk committed Jan 3, 2025
1 parent 15831be commit 6bd8455
Show file tree
Hide file tree
Showing 17 changed files with 415 additions and 336 deletions.
2 changes: 1 addition & 1 deletion i18n/src/main/resources/openfire_i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1218,10 +1218,10 @@ server.db_stats.enabled=Enabled
server.db_stats.disabled=Disabled
server.db_stats.update=Update
server.db_stats.refresh=Refresh
server.db_stats.refresh_now=Refresh Now
server.db_stats.none=none
server.db_stats.settings=Query Statistics Settings
server.db_stats.seconds=seconds
server.db_stats.set=Set
server.db_stats.clear_stats=Clear All Stats
server.db_stats.select_stats=SELECT Query Statistics
server.db_stats.insert_stats=INSERT Query Statistics
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_cs_CZ.properties
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@ server.db_stats.refresh=Občerstvit
server.db_stats.none=žádná
server.db_stats.settings=Nastavení statistiky dotazů
server.db_stats.seconds=sekundy
server.db_stats.set=Nastavit
server.db_stats.clear_stats=Vymazat všechny statistiky
server.db_stats.select_stats=Statistika SELECT dotazů
server.db_stats.insert_stats=Statistika INSERT dotazů
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,6 @@ server.db_stats.query=Anfrage
server.db_stats.refresh=Aktualisieren
server.db_stats.seconds=Sekunden
server.db_stats.select_stats=SELECT Anfragestatistiken
server.db_stats.set=Festlegen
server.db_stats.settings=Anfragestatistik-Einstellungen
server.db_stats.status=Anfragestatistik-Status
server.db_stats.time=Gesamtzeit
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,6 @@ server.db_stats.refresh=Refrescar
server.db_stats.none=nunca
server.db_stats.settings=Configuración de Estadísticas de Consultas
server.db_stats.seconds=segundos
server.db_stats.set=Setear
server.db_stats.clear_stats=Resetear Estadísticas
server.db_stats.select_stats=Estadísticas de SELECT
server.db_stats.insert_stats=Estadísticas de INSERT
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_fa_IR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,6 @@ server.db_stats.refresh=بارگذاری مجدد
server.db_stats.none=هیچ
server.db_stats.settings=تنظیمات آمار کوئری
server.db_stats.seconds=ثانیه
server.db_stats.set=تنظیم
server.db_stats.clear_stats=پاک کردن تمام آمار
server.db_stats.select_stats=آمار کوئری SELECT
server.db_stats.insert_stats=آمار کوئری INSERT
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_he.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,6 @@ server.db_stats.refresh=רענן
server.db_stats.none=none
server.db_stats.settings=Query Statistics Settings
server.db_stats.seconds=שניות
server.db_stats.set=Set
server.db_stats.clear_stats=טהר את כל הסטטיסטיקה
server.db_stats.select_stats=SELECT Query Statistics
server.db_stats.insert_stats=INSERT Query Statistics
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_ja_JP.properties
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,6 @@ server.db_stats.refresh=リフレッシュ
server.db_stats.none=なし
server.db_stats.settings=クエリー統計設定
server.db_stats.seconds=
server.db_stats.set=セット
server.db_stats.clear_stats=全統計のクリアー
server.db_stats.select_stats=SELECTクエリー統計
server.db_stats.insert_stats=INSERTクエリー統計
Expand Down
38 changes: 19 additions & 19 deletions i18n/src/main/resources/openfire_i18n_nl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1067,32 +1067,32 @@ server.db.test_timeout=Test Timeout:
server.db.connection_mean_borrow_time=Average time waited:
server.db.connection_max_borrow_time=Max time waited:

server.db_stats.title=Database Query Statistics
server.db_stats.title=Database Query Statistieken
server.db_stats.description=Enable database query statistics to trace all database queries made. This can be useful to debug issues and monitor database performance. However, it's not recommended that you leave query statistics permanently running, as they will cause performance to degrade slightly.
server.db_stats.status=Query Statistics Status
server.db_stats.enabled=Ingeschakeld
server.db_stats.disabled=Uitgeschakeld
server.db_stats.update=Update
server.db_stats.refresh=Refresh
server.db_stats.none=none
server.db_stats.settings=Query Statistics Settings
server.db_stats.seconds=seconds
server.db_stats.set=Set
server.db_stats.refresh=Ververs
server.db_stats.refresh_now=Ververs Nu
server.db_stats.none=geen
server.db_stats.settings=Query Statistics Configuratie
server.db_stats.seconds=seconden
server.db_stats.clear_stats=Clear All Stats
server.db_stats.select_stats=SELECT Query Statistics
server.db_stats.insert_stats=INSERT Query Statistics
server.db_stats.update_stats=UPDATE Query Statistics
server.db_stats.delete_stats=DELETE Query Statistics
server.db_stats.operations=Total # of operations
server.db_stats.total_time=Total time for all operations (ms)
server.db_stats.avg_rate=Average time for each operation (ms)
server.db_stats.total_rate=Operations per second
server.db_stats.queries=Most common SQL queries
server.db_stats.select_stats=SELECT Query Statistieken
server.db_stats.insert_stats=INSERT Query Statistieken
server.db_stats.update_stats=UPDATE Query Statistieken
server.db_stats.delete_stats=DELETE Query Statistieken
server.db_stats.operations=Totaal # operaties
server.db_stats.total_time=Totale tijd voor alle operaties (ms)
server.db_stats.avg_rate=Gemiddelde time voor een operatie (ms)
server.db_stats.total_rate=Operaties per seconde
server.db_stats.queries=Meestgebruikte SQL queries
server.db_stats.query=Query
server.db_stats.count=Count
server.db_stats.time=Total Time
server.db_stats.average_time=Avg. Time
server.db_stats.no_queries=No queries
server.db_stats.count=Aantal
server.db_stats.time=Totaal Tijd
server.db_stats.average_time=Gem. Tijd
server.db_stats.no_queries=Geen queries


#
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_pl_PL.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,6 @@ server.db_stats.query=Query
server.db_stats.refresh=Refresh
server.db_stats.seconds=seconds
server.db_stats.select_stats=SELECT Query Statistics
server.db_stats.set=Set
server.db_stats.settings=Query Statistics Settings
server.db_stats.status=Query Statistics Status
server.db_stats.time=Total Time
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_pt_BR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,6 @@ server.db_stats.refresh=Atualizar
server.db_stats.none=nenhum
server.db_stats.settings=Configurações das Estatísticas de Consulta
server.db_stats.seconds=segundos
server.db_stats.set=Definir
server.db_stats.clear_stats=Limpar todas as estatísticas
server.db_stats.select_stats=Estatística de Consulta SELECT
server.db_stats.insert_stats=Estatística de Consulta INSERT
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_pt_PT.properties
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,6 @@ server.db_stats.refresh=Atualizar
server.db_stats.none=Nenhum
server.db_stats.settings=Configurações das Estatísticas de Consulta
server.db_stats.seconds=segundos
server.db_stats.set=Definir
server.db_stats.clear_stats=Limpar todas as estatísticas
server.db_stats.select_stats=Estatística de Consulta SELECT
server.db_stats.insert_stats=Estatística de Consulta INSERT
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_ru_RU.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,6 @@ server.db_stats.refresh=Обновлять
server.db_stats.none=никогда
server.db_stats.settings=Настройки статистики запросов
server.db_stats.seconds=секунд
server.db_stats.set=Задать
server.db_stats.clear_stats=Очистить всю статистику
server.db_stats.select_stats=SELECT статистика запросов
server.db_stats.insert_stats=INSERT статистика запросов
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_sk.properties
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,6 @@ server.db_stats.refresh=Obnoviť
server.db_stats.none=žiadne
server.db_stats.settings=Nastavenia štatistiky požiadaviek
server.db_stats.seconds=sekúnd
server.db_stats.set=Nastavenie
server.db_stats.clear_stats=Vyčistiť všetky štatistiky
server.db_stats.select_stats=Štatistika požiadaviek SELECT
server.db_stats.insert_stats=Štatistika požiadaviek INSERT
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_uk_UA.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,6 @@ server.db_stats.refresh=Оновити
server.db_stats.none=жодного
server.db_stats.settings=Налаштування статистики запиту
server.db_stats.seconds=секунд
server.db_stats.set=Встановити
server.db_stats.clear_stats=Очистити всю статистику
server.db_stats.select_stats=ОБЕРІТЬ статистику запиту
server.db_stats.insert_stats=ВСТАВИТИ статистику запиту
Expand Down
1 change: 0 additions & 1 deletion i18n/src/main/resources/openfire_i18n_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,6 @@ server.db_stats.refresh=刷新
server.db_stats.none=没有
server.db_stats.settings=查询统计数据设置
server.db_stats.seconds=
server.db_stats.set=设置
server.db_stats.clear_stats=清除所有统计数据
server.db_stats.select_stats=选择查询统计数据
server.db_stats.insert_stats=插入查询统计数据
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,38 @@ public ProfiledConnectionEntry(String sql) {
count = 0;
totalTime = Duration.ZERO;
}

public String getSql()
{
return sql;
}

public void setSql(String sql)
{
this.sql = sql;
}

public int getCount()
{
return count;
}

public void setCount(int count)
{
this.count = count;
}

public Duration getTotalTime()
{
return totalTime;
}

public void setTotalTime(Duration totalTime)
{
this.totalTime = totalTime;
}

public Duration getAverageTime() {
return this.totalTime.dividedBy(count);
}
}
Loading

0 comments on commit 6bd8455

Please sign in to comment.