MXS-2271 All monitors inherit from MXS_MONITOR
Most of the API entrypoints are replaced with virtual functions.
This commit is contained in:
@ -27,8 +27,7 @@ const int DEFAULT_HEALTH_PORT = 3581;
|
||||
|
||||
}
|
||||
|
||||
ClustrixMonitor::ClustrixMonitor(MXS_MONITOR* pMonitor)
|
||||
: maxscale::MonitorInstance(pMonitor)
|
||||
ClustrixMonitor::ClustrixMonitor()
|
||||
{
|
||||
}
|
||||
|
||||
@ -37,9 +36,9 @@ ClustrixMonitor::~ClustrixMonitor()
|
||||
}
|
||||
|
||||
//static
|
||||
ClustrixMonitor* ClustrixMonitor::create(MXS_MONITOR* pMonitor)
|
||||
ClustrixMonitor* ClustrixMonitor::create()
|
||||
{
|
||||
return new ClustrixMonitor(pMonitor);
|
||||
return new ClustrixMonitor();
|
||||
}
|
||||
|
||||
bool ClustrixMonitor::configure(const MXS_CONFIG_PARAMETER* pParams)
|
||||
|
@ -60,12 +60,12 @@ public:
|
||||
|
||||
~ClustrixMonitor();
|
||||
|
||||
static ClustrixMonitor* create(MXS_MONITOR* pMonitor);
|
||||
static ClustrixMonitor* create();
|
||||
|
||||
bool configure(const MXS_CONFIG_PARAMETER* pParams) override;
|
||||
|
||||
private:
|
||||
ClustrixMonitor(MXS_MONITOR* pMonitor);
|
||||
ClustrixMonitor();
|
||||
|
||||
void pre_loop() override;
|
||||
void post_loop() override;
|
||||
|
Reference in New Issue
Block a user