MXS-1775 Rearrange for moving main loop to MonitorInstance

This is another step in the process for moving the main loop
from MariaDBMonitor to MonitorInstance.
This commit is contained in:
Johan Wikman
2018-06-05 12:47:34 +03:00
parent 5172c43e29
commit 71194d83d3
4 changed files with 46 additions and 24 deletions

View File

@ -186,6 +186,20 @@ protected:
*/
virtual void main();
/**
* @brief Called before the monitor loop is started
*
* The default implementation will load the journal and update @c m_master.
*/
virtual void pre_loop();
/**
* @brief Called after the monitor loop has ended.
*
* The default implementation does nothing.
*/
virtual void post_loop();
MXS_MONITOR* m_monitor; /**< The generic monitor structure. */
MXS_MONITORED_SERVER* m_master; /**< Master server */