Apache Mesos
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
src
uri
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/hadoop.hpp
"
31
32
#ifndef __WINDOWS__
33
#include "
uri/fetchers/docker.hpp
"
34
#endif // __WINDOWS__
35
36
namespace
mesos
{
37
namespace
uri
{
38
namespace
fetcher {
39
43
class
Flags
:
44
public
virtual
CopyFetcherPlugin::Flags
,
45
public
virtual
CurlFetcherPlugin::Flags
,
46
#ifndef __WINDOWS__
47
public
virtual
DockerFetcherPlugin::Flags
,
48
#endif // __WINDOWS__
49
public
virtual
HadoopFetcherPlugin::Flags
{};
50
51
55
Try<process::Owned<Fetcher>
>
create
(
const
Option<Flags>
& _flags =
None
());
56
57
}
// namespace fetcher {
58
}
// namespace uri {
59
}
// namespace mesos {
60
61
#endif // __URI_FETCHER_HPP__
Option
Definition:
option.hpp:29
Try
Definition:
check.hpp:33
none.hpp
copy.hpp
fetcher.hpp
curl.hpp
mesos
Definition:
agent.hpp:25
docker.hpp
hadoop.hpp
option.hpp
None
Definition:
none.hpp:27
mesos::uri::CopyFetcherPlugin::Flags
Definition:
copy.hpp:33
try.hpp
mesos::uri::fetcher::create
Try< process::Owned< Fetcher > > create(const Option< Flags > &_flags=None())
Factory method for creating a Fetcher instance.
owned.hpp
uri
Definition:
uri.hpp:21
mesos::uri::fetcher::Flags
The combined flags for all built-in plugins.
Definition:
fetcher.hpp:43
mesos::uri::CurlFetcherPlugin::Flags
Definition:
curl.hpp:33
mesos::uri::HadoopFetcherPlugin::Flags
Definition:
hadoop.hpp:39
mesos::uri::DockerFetcherPlugin::Flags
Definition:
docker.hpp:37
Generated by
1.8.11