#include <health_checker.hpp>
mesos::internal::checks::HealthChecker::~HealthChecker |
( |
| ) |
|
Attempts to create a HealthChecker
object.
In case of success, health checking starts immediately after initialization.
The check performed is based off the check type and the given runtime.
- Parameters
-
healthCheck | The protobuf message definition of health check. |
launcherDir | A directory where Mesos helper binaries are located. |
callback | A callback HealthChecker uses to send health status updates to its owner (usually an executor). |
taskId | The TaskID of the target task. |
runtime | The runtime that launched the task. |
- Returns
- A
HealthChecker
object or an error if create
fails.
- Todo:
- A better approach would be to return a stream of updates, e.g.,
process::Stream<TaskHealthStatus>
rather than invoking a callback.
- Todo:
- Consider leveraging
checks::Checker
for checking functionality. This class will then focus on interpreting and acting on the result.
void mesos::internal::checks::HealthChecker::pause |
( |
| ) |
|
void mesos::internal::checks::HealthChecker::resume |
( |
| ) |
|
The documentation for this class was generated from the following file: