Apache Mesos
fetcher.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 __URI_FETCHER_HPP__
18 #define __URI_FETCHER_HPP__
19 
20 #include <process/owned.hpp>
21 
22 #include <stout/none.hpp>
23 #include <stout/option.hpp>
24 #include <stout/try.hpp>
25 
26 #include <mesos/uri/fetcher.hpp>
27 
28 #include "uri/fetchers/copy.hpp"
29 #include "uri/fetchers/curl.hpp"
30 #include "uri/fetchers/docker.hpp"
31 #include "uri/fetchers/hadoop.hpp"
32 
33 namespace mesos {
34 namespace uri {
35 namespace fetcher {
36 
40 class Flags :
41  public virtual CopyFetcherPlugin::Flags,
42  public virtual CurlFetcherPlugin::Flags,
43 #ifdef __WINDOWS__
44  public virtual HadoopFetcherPlugin::Flags {};
45 #else
46  // TODO(coffler): Add support for Docker plugins. See MESOS-8570.
47  public virtual HadoopFetcherPlugin::Flags,
48  public virtual DockerFetcherPlugin::Flags {};
49 #endif // __WINDOWS__
50 
51 
56 
57 } // namespace fetcher {
58 } // namespace uri {
59 } // namespace mesos {
60 
61 #endif // __URI_FETCHER_HPP__
Definition: option.hpp:28
Definition: check.hpp:33
Definition: spec.hpp:30
Definition: none.hpp:27
Try< process::Owned< Fetcher > > create(const Option< Flags > &_flags=None())
Factory method for creating a Fetcher instance.
Definition: uri.hpp:21
The combined flags for all built-in plugins.
Definition: fetcher.hpp:40