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