MXS-1775 Make general cleanup
Document and rearrrange so that things look nice and tidy.
This commit is contained in:
@ -40,15 +40,6 @@ GRMon* GRMon::create(MXS_MONITOR* monitor)
|
||||
return new GRMon(monitor);
|
||||
}
|
||||
|
||||
bool GRMon::has_sufficient_permissions() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void GRMon::configure(const MXS_CONFIG_PARAMETER* params)
|
||||
{
|
||||
}
|
||||
|
||||
void GRMon::diagnostics(DCB* dcb) const
|
||||
{
|
||||
}
|
||||
@ -58,6 +49,15 @@ json_t* GRMon::diagnostics_json() const
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void GRMon::configure(const MXS_CONFIG_PARAMETER* params)
|
||||
{
|
||||
}
|
||||
|
||||
bool GRMon::has_sufficient_permissions() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline bool is_false(const char* value)
|
||||
{
|
||||
return strcasecmp(value, "0") == 0 ||
|
||||
|
||||
@ -31,11 +31,11 @@ public:
|
||||
void diagnostics(DCB* dcb) const;
|
||||
json_t* diagnostics_json() const;
|
||||
|
||||
private:
|
||||
GRMon(MXS_MONITOR* monitor);
|
||||
|
||||
protected:
|
||||
void configure(const MXS_CONFIG_PARAMETER* params);
|
||||
bool has_sufficient_permissions() const;
|
||||
void update_server_status(MXS_MONITORED_SERVER* monitored_server);
|
||||
|
||||
bool has_sufficient_permissions() const;
|
||||
void configure(const MXS_CONFIG_PARAMETER* params);
|
||||
private:
|
||||
GRMon(MXS_MONITOR* monitor);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user