MXS-2271 Monitor config name and instance name are parameters of createInstance()
Also adds/moves some comments from previous entrypoints. Name and module are now constant fields.
This commit is contained in:
@ -48,10 +48,11 @@ public:
|
||||
/**
|
||||
* Create the monitor instance and return the instance data.
|
||||
*
|
||||
* @param monitor Generic monitor data
|
||||
* @param name Monitor config name
|
||||
* @param module Module name
|
||||
* @return MariaDBMonitor instance
|
||||
*/
|
||||
static MariaDBMonitor* create();
|
||||
static MariaDBMonitor* create(const std::string& name, const std::string& module);
|
||||
|
||||
~MariaDBMonitor();
|
||||
|
||||
@ -236,7 +237,7 @@ private:
|
||||
* gtid:s? */
|
||||
|
||||
// Base methods
|
||||
MariaDBMonitor();
|
||||
MariaDBMonitor(const std::string& name, const std::string& module);
|
||||
bool configure(const MXS_CONFIG_PARAMETER* params);
|
||||
bool set_replication_credentials(const MXS_CONFIG_PARAMETER* params);
|
||||
void reset_server_info();
|
||||
|
||||
Reference in New Issue
Block a user