MXS-2275 Add skeleton softfail/unsoftfail support

Add skeleton implementation for the functionality for being able
to softfail and unsoftfail a Clustrix node.
This commit is contained in:
Johan Wikman
2019-01-30 15:35:42 +02:00
parent f2d2202ea3
commit 2e395c4477
3 changed files with 75 additions and 0 deletions

View File

@ -55,6 +55,18 @@ bool ClustrixMonitor::configure(const MXS_CONFIG_PARAMETER* pParams)
return true;
}
bool ClustrixMonitor::softfail(SERVER* pServer, json_t** ppError)
{
MXS_NOTICE("Should softfail %s.", pServer->address);
return true;
}
bool ClustrixMonitor::unsoftfail(SERVER* pServer, json_t** ppError)
{
MXS_NOTICE("Should unsoftfail %s.", pServer->address);
return true;
}
void ClustrixMonitor::pre_loop()
{
make_health_check();