Apache Mesos
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
include
mesos
module
hook.hpp
Go to the documentation of this file.
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements. See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership. The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License. You may obtain a copy of the License at
8
//
9
// http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing, software
12
// distributed under the License is distributed on an "AS IS" BASIS,
13
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
16
17
#ifndef __MESOS_MODULE_HOOK_HPP__
18
#define __MESOS_MODULE_HOOK_HPP__
19
20
#include <
mesos/hook.hpp
>
21
#include <
mesos/mesos.hpp
>
22
#include <
mesos/module.hpp
>
23
24
namespace
mesos
{
25
namespace
modules {
26
27
template
<>
28
inline
const
char
* kind<mesos::Hook>()
29
{
30
return
"Hook"
;
31
}
32
33
34
template
<>
35
struct
Module
<
mesos
::
Hook
> :
ModuleBase
36
{
37
Module
(
38
const
char
* _moduleApiVersion,
39
const
char
* _mesosVersion,
40
const
char
* _authorName,
41
const
char
* _authorEmail,
42
const
char
* _description,
43
bool
(*_compatible)(),
44
mesos::Hook
* (*_create)(
const
Parameters& parameters))
45
:
ModuleBase
(
46
_moduleApiVersion,
47
_mesosVersion,
48
mesos
::modules::
kind
<
mesos
::
Hook
>(),
49
_authorName,
50
_authorEmail,
51
_description,
52
_compatible),
53
create
(_create) {}
54
55
mesos::Hook
* (*create)(
const
Parameters& parameters);
56
};
57
58
}
// namespace modules {
59
}
// namespace mesos {
60
61
#endif // __MESOS_MODULE_HOOK_HPP__
mesos::modules::ModuleBase
Definition:
module.hpp:56
mesos.hpp
hook.hpp
mesos::modules::kind
const char * kind()
mesos::modules::Module< mesos::Hook >::Module
Module(const char *_moduleApiVersion, const char *_mesosVersion, const char *_authorName, const char *_authorEmail, const char *_description, bool(*_compatible)(), mesos::Hook *(*_create)(const Parameters ¶meters))
Definition:
hook.hpp:37
mesos
Definition:
agent.hpp:25
module.hpp
cgroups::create
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
mesos::Hook
Definition:
hook.hpp:39
mesos::modules::Module
Definition:
module.hpp:97
Generated by
1.8.11