Live state for one supervised component.
More...
#include <service_supervisor.h>
|
| Origin | origin () const |
| | Get service origin.
|
| const std::string & | url () const |
| | Get url to access service.
|
| bool | healthy () const |
| | Get health status of service.
|
| pid_t | pid () const |
| | Get pid of service.
|
| int | restarts () const |
| | Get number of restarts.
|
| const std::string & | name () const |
| | Get name of service.
|
Live state for one supervised component.
Returned by ensure(); kept alive by the supervisor for as long as it is tracking the component. Methods are thread-safe.
◆ healthy()
| bool agents::runtime::ServiceHandle::healthy |
( |
| ) |
const |
|
inline |
Get health status of service.
- Returns
- true healthy
-
false unhealthy
◆ name()
| const std::string & agents::runtime::ServiceHandle::name |
( |
| ) |
const |
|
inline |
Get name of service.
- Returns
- const std::string& name of service
◆ origin()
| Origin agents::runtime::ServiceHandle::origin |
( |
| ) |
const |
|
inline |
Get service origin.
- Returns
- Origin the origin enum
◆ pid()
| pid_t agents::runtime::ServiceHandle::pid |
( |
| ) |
const |
|
inline |
Get pid of service.
- Returns
- pid_t process id 0 when we don't own the process
◆ restarts()
| int agents::runtime::ServiceHandle::restarts |
( |
| ) |
const |
|
inline |
Get number of restarts.
- Returns
- int number of restarts
◆ url()
| const std::string & agents::runtime::ServiceHandle::url |
( |
| ) |
const |
|
inline |
Get url to access service.
- Returns
- const std::string& url string