| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you under the Apache License, Version 2.0 (the |
| // "License"); you may not use this file except in compliance |
| // with the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| #ifndef __MASTER_FLAGS_HPP__ |
| #define __MASTER_FLAGS_HPP__ |
| |
| #include <string> |
| |
| #include <stout/duration.hpp> |
| #include <stout/option.hpp> |
| #include <stout/path.hpp> |
| |
| #include <mesos/mesos.hpp> |
| |
| #include <mesos/authorizer/acls.hpp> |
| |
| #include <mesos/module/module.hpp> |
| |
| #include "logging/flags.hpp" |
| |
| #include "messages/flags.hpp" |
| |
| namespace mesos { |
| namespace internal { |
| namespace master { |
| |
| class Flags : public logging::Flags |
| { |
| public: |
| Flags(); |
| bool version; |
| Option<std::string> hostname; |
| bool hostname_lookup; |
| bool root_submissions; |
| Option<std::string> work_dir; |
| std::string registry; |
| Option<int> quorum; |
| Duration zk_session_timeout; |
| bool registry_strict; |
| Duration registry_fetch_timeout; |
| Duration registry_store_timeout; |
| bool log_auto_initialize; |
| Duration agent_reregister_timeout; |
| std::string recovery_agent_removal_limit; |
| Option<std::string> agent_removal_rate_limit; |
| std::string webui_dir; |
| Option<Path> whitelist; |
| std::string user_sorter; |
| std::string framework_sorter; |
| Duration allocation_interval; |
| Option<std::string> cluster; |
| Option<std::string> roles; |
| Option<std::string> weights; |
| bool authenticate_frameworks; |
| bool authenticate_agents; |
| bool authenticate_http_readonly; |
| bool authenticate_http_readwrite; |
| bool authenticate_http_frameworks; |
| Option<Path> credentials; |
| Option<ACLs> acls; |
| Option<Firewall> firewall_rules; |
| Option<RateLimits> rate_limits; |
| Option<Duration> offer_timeout; |
| Option<Modules> modules; |
| Option<std::string> modulesDir; |
| std::string authenticators; |
| std::string allocator; |
| Option<std::set<std::string>> fair_sharing_excluded_resource_names; |
| Option<std::string> hooks; |
| Duration agent_ping_timeout; |
| size_t max_agent_ping_timeouts; |
| std::string authorizers; |
| std::string http_authenticators; |
| Option<std::string> http_framework_authenticators; |
| size_t max_completed_frameworks; |
| size_t max_completed_tasks_per_framework; |
| Option<std::string> master_contender; |
| Option<std::string> master_detector; |
| |
| #ifdef WITH_NETWORK_ISOLATOR |
| Option<size_t> max_executors_per_agent; |
| #endif // WITH_NETWORK_ISOLATOR |
| }; |
| |
| } // namespace master { |
| } // namespace internal { |
| } // namespace mesos { |
| |
| #endif // __MASTER_FLAGS_HPP__ |