Package io.ebean.datasource
Interface DataSourceAlert
-
public interface DataSourceAlert
Listener for notifications about the DataSource such as when the DataSource goes down, up or gets close to it's maximum size.The intention is to send email notifications to an administrator (or similar) when these events occur on the DataSource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddataSourceDown(DataSource dataSource, SQLException reason)Send an alert to say the dataSource is down.voiddataSourceUp(DataSource dataSource)Send an alert to say the dataSource is back up.voiddataSourceWarning(DataSource dataSource, String msg)Send an alert to say the dataSource is getting close to its max size.
-
-
-
Method Detail
-
dataSourceUp
void dataSourceUp(DataSource dataSource)
Send an alert to say the dataSource is back up.
-
dataSourceDown
void dataSourceDown(DataSource dataSource, SQLException reason)
Send an alert to say the dataSource is down.
-
dataSourceWarning
void dataSourceWarning(DataSource dataSource, String msg)
Send an alert to say the dataSource is getting close to its max size.
-
-