17 #ifndef __TASK_STATUS_UPDATE_MANAGER_HPP__ 18 #define __TASK_STATUS_UPDATE_MANAGER_HPP__ 49 class TaskStatusUpdateManagerProcess;
50 struct TaskStatusUpdateStream;
66 void initialize(
const lambda::function<
void(StatusUpdate)>& forward);
78 const StatusUpdate&
update,
79 const SlaveID& slaveId,
80 const ExecutorID& executorId,
81 const ContainerID& containerId);
87 const StatusUpdate& update,
88 const SlaveID& slaveId);
98 const FrameworkID& frameworkId,
103 const std::string& rootDir,
119 void cleanup(
const FrameworkID& frameworkId);
122 TaskStatusUpdateManagerProcess*
process;
135 const FrameworkID& _frameworkId,
136 const SlaveID& _slaveId,
155 const TaskID& taskId,
156 const FrameworkID& frameworkId,
158 const StatusUpdate& update);
166 const std::vector<StatusUpdate>& updates,
183 const StatusUpdate& update,
187 const StatusUpdate& update,
191 const FrameworkID frameworkId;
192 const SlaveID slaveId;
210 #endif // __TASK_STATUS_UPDATE_MANAGER_HPP__
Definition: option.hpp:29
Try< bool > update(const std::string &link, const Handle &parent, uint16_t protocol, const action::Mirror &mirror)
const bool checkpoint
Definition: task_status_update_manager.hpp:170
process::Future< bool > cleanup(const std::string &hierarchy)
Definition: task_status_update_manager.hpp:58
Try< Nothing > initialize(const Flags &flags)
Initialized state for support of systemd functions in this file.
Option< process::Timeout > timeout
Definition: task_status_update_manager.hpp:172
Definition: task_status_update_manager.hpp:132
Try< State > recover(const std::string &rootDir, bool strict)
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
#define flags
Definition: decoder.hpp:18
Definition: attributes.hpp:24
std::string error(const std::string &msg, uint32_t code)
Type
Definition: capabilities.hpp:82
Try< uint32_t > type(const std::string &path)
std::queue< StatusUpdate > pending
Definition: task_status_update_manager.hpp:173
bool terminated
Definition: task_status_update_manager.hpp:171