17 #ifndef __CHECKER_PROCESS_HPP__
18 #define __CHECKER_PROCESS_HPP__
47 const CheckInfo& _check,
48 const std::string& _launcherDir,
50 const TaskID& _taskId,
52 const std::vector<std::string>& _namespaces,
57 const std::string& _name,
58 bool _commandCheckViaAgent,
72 void scheduleNext(
const Duration& duration);
73 void processCheckResult(
81 void __nestedCommandCheck(
84 void ___nestedCommandCheck(
86 const ContainerID& checkContainerId,
89 void nestedCommandCheckFailure(
92 const ContainerID& checkContainerId,
93 std::shared_ptr<bool> checkTimedOut,
94 const std::string& failure);
97 const ContainerID& containerId);
99 const ContainerID& containerId,
102 void processCommandCheckResult(
111 void processHttpCheckResult(
120 void processTcpCheckResult(
124 const CheckInfo check;
130 const std::string launcherDir;
132 const lambda::function<void(const Try<CheckStatusInfo>&)> updateCallback;
135 const std::vector<std::string> namespaces;
140 const std::string name;
141 const bool commandCheckViaAgent;
164 #endif // __CHECKER_PROCESS_HPP__
CheckerProcess(const CheckInfo &_check, const std::string &_launcherDir, const lambda::function< void(const Try< CheckStatusInfo > &)> &_callback, const TaskID &_taskId, const Option< pid_t > &_taskPid, const std::vector< std::string > &_namespaces, const Option< ContainerID > &_taskContainerId, const Option< process::http::URL > &_agentURL, const Option< std::string > &_authorizationHeader, const Option< std::string > &_scheme, const std::string &_name, bool _commandCheckViaAgent, bool _ipv6=false)
virtual ~CheckerProcess()
Definition: checker_process.hpp:64
Definition: stopwatch.hpp:30
Definition: duration.hpp:32
Definition: result.hpp:40
Definition: future.hpp:73
Protocol< PromiseRequest, PromiseResponse > promise
Definition: protobuf.hpp:100
void finalize() override
Invoked when a process is terminated.
void initialize() override
Invoked when a process gets spawned.
Definition: checker_process.hpp:40
Represents a connection to an HTTP server.
Definition: http.hpp:945
Definition: future.hpp:57