Apache Mesos
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
src
log
tool
initialize.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 __LOG_TOOL_INITIALIZE_HPP__
18
#define __LOG_TOOL_INITIALIZE_HPP__
19
20
#include <
stout/duration.hpp
>
21
#include <
stout/flags.hpp
>
22
#include <
stout/option.hpp
>
23
24
#include "
log/tool.hpp
"
25
26
#include "
logging/flags.hpp
"
27
28
namespace
mesos
{
29
namespace
internal
{
30
namespace
log {
31
namespace
tool {
32
33
class
Initialize
:
public
Tool
34
{
35
public
:
36
class
Flags
:
public
virtual
logging::Flags
37
{
38
public
:
39
Flags
();
40
41
Option<std::string>
path
;
42
Option<Duration>
timeout
;
43
bool
help
;
44
};
45
46
std::string
name
()
const override
{
return
"initialize"
; }
47
Try<Nothing>
execute
(
int
argc = 0,
char
** argv =
nullptr
)
override
;
48
49
// Users can change the default configuration by setting this flags.
50
Flags
flags
;
51
};
52
53
}
// namespace tool {
54
}
// namespace log {
55
}
// namespace internal {
56
}
// namespace mesos {
57
58
#endif // __LOG_TOOL_INITIALIZE_HPP__
Option< std::string >
mesos::internal::logging::Flags
Definition:
flags.hpp:29
Try
Definition:
check.hpp:33
mesos::internal::log::tool::Initialize::Flags
Definition:
initialize.hpp:36
mesos::internal::log::tool::Initialize::Flags::path
Option< std::string > path
Definition:
initialize.hpp:41
mesos::internal::log::tool::Initialize::flags
Flags flags
Definition:
initialize.hpp:50
duration.hpp
mesos
Definition:
agent.hpp:25
flags.hpp
option.hpp
internal
Definition:
attributes.hpp:24
mesos::internal::log::tool::Initialize
Definition:
initialize.hpp:33
mesos::internal::log::tool::Tool
Definition:
tool.hpp:31
mesos::internal::log::tool::Initialize::Flags::help
bool help
Definition:
initialize.hpp:43
mesos::internal::log::tool::Initialize::execute
Try< Nothing > execute(int argc=0, char **argv=nullptr) override
mesos::internal::log::tool::Initialize::Flags::Flags
Flags()
flags.hpp
mesos::internal::log::tool::Initialize::name
std::string name() const override
Definition:
initialize.hpp:46
tool.hpp
mesos::internal::log::tool::Initialize::Flags::timeout
Option< Duration > timeout
Definition:
initialize.hpp:42
Generated by
1.8.11