MXS-1775 Add MonitorInstanceSimple class
MonitorInstanceSimple is intended for simple monitors that probe servers in a straightforward fashion. More complex monitors can be derived directly from MonitorInstance.
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
NDBCMonitor::NDBCMonitor(MXS_MONITOR *monitor)
|
||||
: maxscale::MonitorInstance(monitor)
|
||||
: maxscale::MonitorInstanceSimple(monitor)
|
||||
, m_id(MXS_MONITOR_DEFAULT_ID)
|
||||
{
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
* @file ndbcclustermon.hh A NDBC cluster monitor
|
||||
*/
|
||||
|
||||
class NDBCMonitor : public maxscale::MonitorInstance
|
||||
class NDBCMonitor : public maxscale::MonitorInstanceSimple
|
||||
{
|
||||
public:
|
||||
NDBCMonitor(const NDBCMonitor&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user