Class DatabaseMonitor
java.lang.Object
is.codion.swing.framework.server.monitor.DatabaseMonitor
A DatabaseMonitor
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseMonitor
(EntityServerAdmin server, int updateRate) Instantiates a newDatabaseMonitor
for the given server -
Method Summary
Modifier and TypeMethodDescriptionvoid
Resets all collected statisticsorg.jfree.data.xy.XYDataset
void
shutdown()
Shuts down this database monitorvoid
Updates the database usage statistics
-
Constructor Details
-
DatabaseMonitor
Instantiates a newDatabaseMonitor
for the given server- Parameters:
server
- the serverupdateRate
- the initial statistics update rate in seconds- Throws:
RemoteException
- in case of an exception
-
-
Method Details
-
connectionPoolMonitor
- Returns:
- the connection pool monitor
-
shutdown
public void shutdown()Shuts down this database monitor -
clearStatistics
public void clearStatistics()Resets all collected statistics -
updateStatistics
Updates the database usage statistics- Throws:
RemoteException
- in case of an exception
-
queriesPerSecondCollection
public org.jfree.data.xy.XYDataset queriesPerSecondCollection()- Returns:
- the graph series collection for the number of queries
-
updateInterval
- Returns:
- the value controlling the update interval
-