MXS-2271 All monitors inherit from MXS_MONITOR
Most of the API entrypoints are replaced with virtual functions.
This commit is contained in:
@ -26,7 +26,7 @@ public:
|
||||
MMMonitor& operator=(const MMMonitor&) = delete;
|
||||
|
||||
~MMMonitor();
|
||||
static MMMonitor* create(MXS_MONITOR* monitor);
|
||||
static MMMonitor* create();
|
||||
void diagnostics(DCB* dcb) const;
|
||||
json_t* diagnostics_json() const;
|
||||
|
||||
@ -39,7 +39,7 @@ protected:
|
||||
private:
|
||||
int m_detectStaleMaster; /**< Monitor flag for Stale Master detection */
|
||||
|
||||
MMMonitor(MXS_MONITOR* monitor);
|
||||
MMMonitor();
|
||||
|
||||
MXS_MONITORED_SERVER* get_current_master();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user