Class DatabaseMonitor
java.lang.Object
is.codion.swing.framework.server.monitor.DatabaseMonitor
A DatabaseMonitor
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseMonitor(is.codion.framework.server.EntityServerAdmin server, int updateRate) Instantiates a newDatabaseMonitorfor the given server -
Method Summary
-
Constructor Details
-
DatabaseMonitor
public DatabaseMonitor(is.codion.framework.server.EntityServerAdmin server, int updateRate) throws RemoteException 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 value controlling the update interval
-