thread HealthMonitor::monitor_loop — monitor_loop (src/mcp/health_monitor.cpp)¶
Overview · 5 steps, 2 lanes
All 5 steps
| # | caller | callee | what it does | requirements | frames | call site |
|---|---|---|---|---|---|---|
| 1 | monitor_loop | check_server | Check one server and handle state transitions. | REQ-MCP-025 | loop (line 146), loop (line 150), if (line 151) | src/mcp/health_monitor.cpp:152 |
| 2 | check_server | is_connected | Check connection state. | — | — | src/mcp/health_monitor.cpp:178 |
| 3 | check_server | post_event | Post a status change event to the queue. | REQ-MCP-025 | if (line 180) | src/mcp/health_monitor.cpp:185 |
| 4 | check_server | attempt_reconnect | Attempt reconnection for a single server. | REQ-MCP-025 | if (line 180) | src/mcp/health_monitor.cpp:187 |
| 5 | check_server | attempt_reconnect | Attempt reconnection for a single server. | REQ-MCP-025 | if (line 192) | src/mcp/health_monitor.cpp:193 |
Functions¶
5 functions
is_connectedsrc/mcp/external_client.cppattempt_reconnectsrc/mcp/health_monitor.cppcheck_serversrc/mcp/health_monitor.cppmonitor_loopsrc/mcp/health_monitor.cpppost_eventsrc/mcp/health_monitor.cpp
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
5 functions, each with its quick view
- is_connected
Check connection state.
Map
Show it on the map, in its block's wedge.
Block
src/mcp is the block holding
src/mcp/external_client.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- attempt_reconnect
Attempt reconnection for a single server.
Map
Show it on the map, in its block's wedge.
Block
src/mcp is the block holding
src/mcp/health_monitor.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- check_server
Check one server and handle state transitions.
Map
Show it on the map, in its block's wedge.
Block
src/mcp is the block holding
src/mcp/health_monitor.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- monitor_loop
Monitor loop (background thread).
Map
Show it on the map, in its block's wedge.
Block
src/mcp is the block holding
src/mcp/health_monitor.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- post_event
Post a status change event to the queue.
Map
Show it on the map, in its block's wedge.
Block
src/mcp is the block holding
src/mcp/health_monitor.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs