MXS-2271 All monitors inherit from MXS_MONITOR
Most of the API entrypoints are replaced with virtual functions.
This commit is contained in:
@ -26,8 +26,7 @@
|
||||
#include <mysqld_error.h>
|
||||
|
||||
|
||||
GRMon::GRMon(MXS_MONITOR* monitor)
|
||||
: MonitorInstanceSimple(monitor)
|
||||
GRMon::GRMon()
|
||||
{
|
||||
}
|
||||
|
||||
@ -35,9 +34,9 @@ GRMon::~GRMon()
|
||||
{
|
||||
}
|
||||
|
||||
GRMon* GRMon::create(MXS_MONITOR* monitor)
|
||||
GRMon* GRMon::create()
|
||||
{
|
||||
return new GRMon(monitor);
|
||||
return new GRMon();
|
||||
}
|
||||
|
||||
bool GRMon::has_sufficient_permissions() const
|
||||
|
||||
@ -26,12 +26,12 @@ public:
|
||||
GRMon& operator&(const GRMon&) = delete;
|
||||
|
||||
~GRMon();
|
||||
static GRMon* create(MXS_MONITOR* monitor);
|
||||
static GRMon* create();
|
||||
|
||||
protected:
|
||||
bool has_sufficient_permissions() const;
|
||||
void update_server_status(MXS_MONITORED_SERVER* monitored_server);
|
||||
|
||||
private:
|
||||
GRMon(MXS_MONITOR* monitor);
|
||||
GRMon();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user