Apache Mesos
Public Member Functions | List of all members
mesos::Hook Class Reference

#include <hook.hpp>

Public Member Functions

virtual ~Hook ()
 
virtual Result< Labels > masterLaunchTaskLabelDecorator (const TaskInfo &taskInfo, const FrameworkInfo &frameworkInfo, const SlaveInfo &slaveInfo)
 
virtual Result< Labels > slaveRunTaskLabelDecorator (const TaskInfo &taskInfo, const ExecutorInfo &executorInfo, const FrameworkInfo &frameworkInfo, const SlaveInfo &slaveInfo)
 
virtual Try< NothingmasterSlaveLostHook (const SlaveInfo &slaveInfo)
 
virtual Result< Environment > slaveExecutorEnvironmentDecorator (const ExecutorInfo &executorInfo)
 
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)
 
virtual Try< NothingslavePostFetchHook (const ContainerID &containerId, const std::string &directory)
 
virtual Try< NothingslaveRemoveExecutorHook (const FrameworkInfo &frameworkInfo, const ExecutorInfo &executorInfo)
 
virtual Result< TaskStatus > slaveTaskStatusDecorator (const FrameworkID &frameworkId, const TaskStatus &status)
 
virtual Result< ResourcesslaveResourcesDecorator (const SlaveInfo &slaveInfo)
 
virtual Result< AttributesslaveAttributesDecorator (const SlaveInfo &slaveInfo)
 

Constructor & Destructor Documentation

virtual mesos::Hook::~Hook ( )
inlinevirtual

Member Function Documentation

virtual Result<Labels> mesos::Hook::masterLaunchTaskLabelDecorator ( const TaskInfo &  taskInfo,
const FrameworkInfo &  frameworkInfo,
const SlaveInfo &  slaveInfo 
)
inlinevirtual
virtual Try<Nothing> mesos::Hook::masterSlaveLostHook ( const SlaveInfo &  slaveInfo)
inlinevirtual
virtual Result<Attributes> mesos::Hook::slaveAttributesDecorator ( const SlaveInfo &  slaveInfo)
inlinevirtual
virtual Result<Environment> mesos::Hook::slaveExecutorEnvironmentDecorator ( const ExecutorInfo &  executorInfo)
inlinevirtual
virtual Try<Nothing> mesos::Hook::slavePostFetchHook ( const ContainerID &  containerId,
const std::string &  directory 
)
inlinevirtual
virtual process::Future<Option<DockerTaskExecutorPrepareInfo> > mesos::Hook::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 
)
inlinevirtual
virtual Try<Nothing> mesos::Hook::slaveRemoveExecutorHook ( const FrameworkInfo &  frameworkInfo,
const ExecutorInfo &  executorInfo 
)
inlinevirtual
virtual Result<Resources> mesos::Hook::slaveResourcesDecorator ( const SlaveInfo &  slaveInfo)
inlinevirtual
virtual Result<Labels> mesos::Hook::slaveRunTaskLabelDecorator ( const TaskInfo &  taskInfo,
const ExecutorInfo &  executorInfo,
const FrameworkInfo &  frameworkInfo,
const SlaveInfo &  slaveInfo 
)
inlinevirtual
virtual Result<TaskStatus> mesos::Hook::slaveTaskStatusDecorator ( const FrameworkID &  frameworkId,
const TaskStatus &  status 
)
inlinevirtual

The documentation for this class was generated from the following file: