17 #ifndef __CHECKER_PROCESS_HPP__ 18 #define __CHECKER_PROCESS_HPP__ 45 constexpr
char DOCKER_HEALTH_CHECK_IMAGE[] =
"mesos/windows-health-check";
60 const CheckInfo& checkInfo,
61 const std::string& launcherDir,
63 const TaskID& _taskId,
64 const std::string& _name,
80 void scheduleNext(
const Duration& duration);
81 void processCheckResult(
96 void _nestedCommandCheck(
100 void __nestedCommandCheck(
105 void ___nestedCommandCheck(
107 const ContainerID& checkContainerId,
111 void nestedCommandCheckFailure(
114 const ContainerID& checkContainerId,
115 std::shared_ptr<bool> checkTimedOut,
116 const std::string& failure,
120 const ContainerID& containerId,
123 const ContainerID& containerId,
126 void processCommandCheckResult(
134 const std::vector<std::string>& cmdArgv,
140 void processHttpCheckResult(
149 #endif // __WINDOWS__ 155 const std::vector<std::string>& cmdArgv,
161 void processTcpCheckResult(
170 #endif // __WINDOWS__ 172 const lambda::function<void(const Try<CheckStatusInfo>&)> updateCallback;
174 const std::string name;
175 const Variant<runtime::Plain, runtime::Docker, runtime::Nested> runtime;
196 #endif // __CHECKER_PROCESS_HPP__
Definition: stopwatch.hpp:30
Definition: checks_runtime.hpp:46
Definition: duration.hpp:32
~CheckerProcess() override
Definition: checker_process.hpp:72
CheckerProcess(const CheckInfo &checkInfo, const std::string &launcherDir, const lambda::function< void(const Try< CheckStatusInfo > &)> &_callback, const TaskID &_taskId, const std::string &_name, Variant< runtime::Plain, runtime::Docker, runtime::Nested > _runtime, const Option< std::string > &scheme, bool ipv6=false)
hashmap< std::string, HttpEndpoint > http
Definition: process.hpp:456
Definition: checks_types.hpp:66
Definition: future.hpp:74
Protocol< PromiseRequest, PromiseResponse > promise
Definition: protobuf.hpp:108
void finalize() override
Invoked when a process is terminated.
Definition: attributes.hpp:24
Definition: checks_types.hpp:48
void initialize() override
Invoked when a process gets spawned.
Definition: checker_process.hpp:48
Definition: checks_runtime.hpp:36
Definition: checks_types.hpp:42
Definition: checks_runtime.hpp:63
Represents a connection to an HTTP server.
Definition: http.hpp:965
Definition: future.hpp:58