17 #ifndef __MESOS_HOOK_HPP__ 18 #define __MESOS_HOOK_HPP__ 35 #include <mesos/module/hook.pb.h> 49 const TaskInfo& taskInfo,
50 const FrameworkInfo& frameworkInfo,
51 const SlaveInfo& slaveInfo)
76 const TaskInfo& taskInfo,
77 const ExecutorInfo& executorInfo,
78 const FrameworkInfo& frameworkInfo,
79 const SlaveInfo& slaveInfo)
102 const ExecutorInfo& executorInfo)
126 const ExecutorInfo& executorInfo,
127 const std::string& containerName,
128 const std::string& containerWorkDirectory,
129 const std::string& mappedSandboxDirectory,
130 const Option<std::map<std::string, std::string>>& env)
140 const ContainerID& containerId,
141 const std::string& directory)
151 const FrameworkInfo& frameworkInfo,
152 const ExecutorInfo& executorInfo)
163 const FrameworkID& frameworkId,
174 const SlaveInfo& slaveInfo)
184 const SlaveInfo& slaveInfo)
192 #endif // __MESOS_HOOK_HPP__ virtual Result< Environment > slaveExecutorEnvironmentDecorator(const ExecutorInfo &executorInfo)
Definition: hook.hpp:101
Definition: nothing.hpp:16
Definition: option.hpp:29
virtual process::Future< Option< DockerTaskExecutorPrepareInfo > > slavePreLaunchDockerTaskExecutorDecorator(const Option< TaskInfo > &taskInfo, const ExecutorInfo &executorInfo, const std::string &containerName, const std::string &containerWorkDirectory, const std::string &mappedSandboxDirectory, const Option< std::map< std::string, std::string >> &env)
Definition: hook.hpp:124
virtual Try< Nothing > masterSlaveLostHook(const SlaveInfo &slaveInfo)
Definition: hook.hpp:88
virtual Result< TaskStatus > slaveTaskStatusDecorator(const FrameworkID &frameworkId, const TaskStatus &status)
Definition: hook.hpp:162
Result< ProcessStatus > status(pid_t pid)
Definition: proc.hpp:166
Definition: resources.hpp:83
virtual Try< Nothing > slaveRemoveExecutorHook(const FrameworkInfo &frameworkInfo, const ExecutorInfo &executorInfo)
Definition: hook.hpp:150
virtual Result< Resources > slaveResourcesDecorator(const SlaveInfo &slaveInfo)
Definition: hook.hpp:173
virtual Result< Labels > slaveRunTaskLabelDecorator(const TaskInfo &taskInfo, const ExecutorInfo &executorInfo, const FrameworkInfo &frameworkInfo, const SlaveInfo &slaveInfo)
Definition: hook.hpp:75
virtual Result< Labels > masterLaunchTaskLabelDecorator(const TaskInfo &taskInfo, const FrameworkInfo &frameworkInfo, const SlaveInfo &slaveInfo)
Definition: hook.hpp:48
virtual Result< Resources > masterLaunchTaskResourceDecorator(const TaskInfo &task, const Resources &slaveResources)
Definition: hook.hpp:64
virtual Result< Attributes > slaveAttributesDecorator(const SlaveInfo &slaveInfo)
Definition: hook.hpp:183
virtual Try< Nothing > slavePostFetchHook(const ContainerID &containerId, const std::string &directory)
Definition: hook.hpp:139
virtual ~Hook()
Definition: hook.hpp:42
Definition: future.hpp:58