Apache Mesos
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 
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.
51 };
52 
53 } // namespace tool {
54 } // namespace log {
55 } // namespace internal {
56 } // namespace mesos {
57 
58 #endif // __LOG_TOOL_INITIALIZE_HPP__
Definition: flags.hpp:29
Definition: check.hpp:33
Option< std::string > path
Definition: initialize.hpp:41
Flags flags
Definition: initialize.hpp:50
Definition: agent.hpp:25
Definition: attributes.hpp:24
Definition: initialize.hpp:33
Definition: tool.hpp:31
bool help
Definition: initialize.hpp:43
Try< Nothing > execute(int argc=0, char **argv=nullptr) override
std::string name() const override
Definition: initialize.hpp:46
Option< Duration > timeout
Definition: initialize.hpp:42