Apache Mesos
provider.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 __RESOURCE_PROVIDER_STORAGE_PROVIDER_HPP__
18 #define __RESOURCE_PROVIDER_STORAGE_PROVIDER_HPP__
19 
20 #include <string>
21 
22 #include <mesos/mesos.hpp>
23 
24 #include <process/http.hpp>
25 #include <process/owned.hpp>
26 
27 #include <stout/error.hpp>
28 #include <stout/option.hpp>
29 #include <stout/try.hpp>
30 
32 
33 namespace mesos {
34 namespace internal {
35 
36 // Forward declarations.
37 class StorageLocalResourceProviderProcess;
38 
39 
41 {
42 public:
44  const process::http::URL& url,
45  const std::string& workDir,
46  const ResourceProviderInfo& info,
47  const SlaveID& slaveId,
48  const Option<std::string>& authToken,
49  bool strict);
50 
51  static Option<Error> validate(const ResourceProviderInfo& info);
52 
54 
56  const StorageLocalResourceProvider& other) = delete;
57 
59  const StorageLocalResourceProvider& other) = delete;
60 
61 private:
63  const process::http::URL& url,
64  const std::string& workDir,
65  const ResourceProviderInfo& info,
66  const SlaveID& slaveId,
67  const Option<std::string>& authToken,
68  bool strict);
69 
71 };
72 
73 } // namespace internal {
74 } // namespace mesos {
75 
76 #endif // __RESOURCE_PROVIDER_STORAGE_PROVIDER_HPP__
Definition: check.hpp:33
static Option< Error > validate(const ResourceProviderInfo &info)
StorageLocalResourceProvider(const StorageLocalResourceProvider &other)=delete
Definition: http.hpp:130
static Try< process::Owned< LocalResourceProvider > > create(const process::http::URL &url, const std::string &workDir, const ResourceProviderInfo &info, const SlaveID &slaveId, const Option< std::string > &authToken, bool strict)
Definition: agent.hpp:25
Definition: attributes.hpp:24
Definition: executor.hpp:48
StorageLocalResourceProvider & operator=(const StorageLocalResourceProvider &other)=delete