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