java.lang.Object
is.codion.tools.monitor.model.DatabaseMonitor
A DatabaseMonitor
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseMonitor(EntityServerAdmin server, int updateRate) Instantiates a newDatabaseMonitorfor the given server -
Method Summary
Modifier and TypeMethodDescriptionvoidResets all collected statisticsorg.jfree.data.xy.XYDatasetvoidshutdown()Shuts down this database monitorvoidUpdates the database usage statistics
-
Constructor Details
-
DatabaseMonitor
Instantiates a newDatabaseMonitorfor 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
Valuecontrolling the update interval
-