|
UniSet @VERSION@
|
#include <HealthChecker.h>
Открытые члены | |
| HealthChecker (std::shared_ptr< Configuration > conf=nullptr) | |
| bool | waitForReady (const ReadyCheck &check, size_t timeout_msec) |
| bool | waitForReady (const ReadyCheck &check, size_t timeout_msec, const std::atomic< bool > &cancelFlag) |
| bool | checkOnce (const ReadyCheck &check) |
Открытые статические члены | |
| static bool | isProcessAlive (Poco::Process::PID pid) |
| static ReadyCheck | parseReadyCheck (const std::string &checkStr) |
Health checker for process readiness and liveness. Supports multiple check types: TCP, CORBA, HTTP, File.
| bool uniset::HealthChecker::checkOnce | ( | const ReadyCheck & | check | ) |
Single check (non-blocking).
|
static |
|
static |
Parse ready check string like "tcp:2809" or "corba:SharedMemory"
| bool uniset::HealthChecker::waitForReady | ( | const ReadyCheck & | check, |
| size_t | timeout_msec | ||
| ) |
Check if process is ready based on ReadyCheck configuration. Blocks until ready or timeout.
| check | ReadyCheck configuration |
| timeout_msec | Maximum wait time in milliseconds |
| bool uniset::HealthChecker::waitForReady | ( | const ReadyCheck & | check, |
| size_t | timeout_msec, | ||
| const std::atomic< bool > & | cancelFlag | ||
| ) |
Check if process is ready, with cancellation support.
| check | ReadyCheck configuration |
| timeout_msec | Maximum wait time in milliseconds |
| cancelFlag | Checked periodically; if true, returns false early |