MySQL 26.10.0
Source Code Documentation
health_monitor_supervisor.h
Go to the documentation of this file.
1/* Copyright (c) 2023, 2026, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#pragma once
25
27
28namespace hm {
29
30class Supervisor : public Collector {
31 public:
32 Supervisor();
33 ~Supervisor() override = default;
34 Supervisor(const Supervisor &) = delete;
35 Supervisor &operator=(const Supervisor &) = delete;
36 Supervisor(Supervisor &&) = delete;
38
39 /** Notify Supervisor that collector settings are pending. */
41 void run_process() override;
42 void process() override;
43
44 void log_resource_status() override {}
45
46 private:
47 // Protected by m_wait_lock and paired with m_wait
49};
50
51} // namespace hm
Definition: health_monitor_collector.h:41
Definition: health_monitor_supervisor.h:30
Supervisor & operator=(Supervisor &&)=delete
bool m_settings_update_pending
Definition: health_monitor_supervisor.h:48
Supervisor(Supervisor &&)=delete
void log_resource_status() override
Definition: health_monitor_supervisor.h:44
Supervisor(const Supervisor &)=delete
void process() override
Execute any pending tasks.
Definition: health_monitor_supervisor.cc:76
~Supervisor() override=default
Supervisor()
Definition: health_monitor_supervisor.cc:36
void notify_settings_update()
Notify Supervisor that collector settings are pending.
Definition: health_monitor_supervisor.cc:43
Supervisor & operator=(const Supervisor &)=delete
void run_process() override
Thread process loop: Wait for pending work then execute it.
Definition: health_monitor_supervisor.cc:53
Definition: component_command.h:29