mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [02/37] mesos-site git commit: Updated the website built from mesos SHA: 1231e8f.
Date Wed, 21 Mar 2018 21:52:52 GMT
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/937d024f/content/api/latest/c++/uri__disk__profile__adaptor_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/uri__disk__profile__adaptor_8hpp_source.html b/content/api/latest/c++/uri__disk__profile__adaptor_8hpp_source.html
new file mode 100644
index 0000000..80d6cd2
--- /dev/null
+++ b/content/api/latest/c++/uri__disk__profile__adaptor_8hpp_source.html
@@ -0,0 +1,117 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.11"/>
+<title>Apache Mesos: src/resource_provider/storage/uri_disk_profile_adaptor.hpp Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+  <td id="projectalign" style="padding-left: 0.5em;">
+   <div id="projectname">Apache Mesos
+   </div>
+  </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.11 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
+      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
+      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+      <li><a href="annotated.html"><span>Classes</span></a></li>
+      <li class="current"><a href="files.html"><span>Files</span></a></li>
+      <li><a href="examples.html"><span>Examples</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.html"><span>File&#160;List</span></a></li>
+      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_74eab5df10e7274ca9726b983071235d.html">resource_provider</a></li><li class="navelem"><a class="el" href="dir_317d8e1c02af29f941da9fa678654170.html">storage</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">uri_disk_profile_adaptor.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<a href="uri__disk__profile__adaptor_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l
 00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="c
 omment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#ifndef __RESOURCE_PROVIDER_URI_DISK_PROFILE_ADAPTOR_HPP__</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#define __RESOUR
 CE_PROVIDER_URI_DISK_PROFILE_ADAPTOR_HPP__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;tuple&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="include_2csi_2spec_8hpp.html">csi/spec.hpp</a>&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</s
 pan>&#160;<span class="preprocessor">#include &lt;<a class="code" href="resource__provider_2storage_2disk__profile__adaptor_8hpp.html">mesos/resource_provider/storage/disk_profile_adaptor.hpp</a>&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="future_8hpp.html">process/future.hpp</a>&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="owned_8hpp.html">process/owned.hpp</a>&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="libprocess_2include_2process_2process_8hpp.html">process/process.hpp</a>&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</
 div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2libprocess_2include_2process_2ssl_2flags_8hpp.html">process/ssl/flags.hpp</a>&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="duration_8hpp.html">stout/duration.hpp</a>&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="error_8hpp.html">stout/error.hpp</a>&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2stout_2include_2stout_2flags_8hpp.html">stout/flags.hpp</a>&gt;</span></div><div class="line"><a name="l00037"></a><span cl
 ass="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="option_8hpp.html">stout/option.hpp</a>&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="path_8hpp.html">stout/path.hpp</a>&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="strings_8hpp.html">stout/strings.hpp</a>&gt;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="disk__profile__utils_8hpp.html">resource_provider/storage/disk_profile_utils.hpp</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span cla
 ss="lineno">   43</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemesos.html">mesos</a> {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">namespace </span>storage {</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">// Forward declaration.</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">class </span>UriDiskProfileAdaptorProcess;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">/
 / The `UriDiskProfileAdaptor` is an example DiskProfileAdaptor module</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">// that takes a URI as a module parameter and fetches that URI</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">// periodically. The fetched data is parsed into the required CSI</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">// protobufs (which also acts as validation).</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">// If there is an error during fetching, any previously fetched results</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">// wi
 ll be used until fetching is successful.</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">// This module does not filter return results based on</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">// `CSIPluginInfo::type` and assumes that all fetched profiles are meant</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">// for all resource providers.</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">// See `UriDiskProfileAdaptor::Flags` below for more information.</span></div><div class="line"><a name="l00063"></a><s
 pan class="lineno"><a class="line" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html">   63</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html">UriDiskProfileAdaptor</a> : <span class="keyword">public</span> <a class="code" href="classmesos_1_1DiskProfileAdaptor.html">DiskProfileAdaptor</a></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;{</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html">   66</a></span>&#160;  <span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html">Flags</a> : <span class="keyword">public</span> <span class="keyword">virtu
 al</span> <a class="code" href="classflags_1_1FlagsBase.html">flags::FlagsBase</a></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  {</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#ab4e89182c53b60ad6ddf389ce595612a">   68</a></span>&#160;    <a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#ab4e89182c53b60ad6ddf389ce595612a">Flags</a>()</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;      <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2ffb60f4d9923cc1791fd59c5cd45a1a">Flags::uri</a>,</div><div class="line"><a name="l00071
 "></a><span class="lineno">   71</span>&#160;          <span class="stringliteral">&quot;uri&quot;</span>,</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;          <a class="code" href="structNone.html">None</a>(),</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;          <span class="stringliteral">&quot;URI to a JSON object containing the disk profile mapping.\n&quot;</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;          <span class="stringliteral">&quot;This module supports both HTTP(s) and file URIs\n.&quot;</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;          <span class="stringliteral">&quot;\n&quot;</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;          <span class="stringliteral">&quot;The JSON object should consist of some top-level string keys\n&quot;</span></div><div
  class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;          <span class="stringliteral">&quot;corresponding to the disk profile name. Each value should contain\n&quot;</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;          <span class="stringliteral">&quot;a `ResourceProviderSelector` under &#39;resource_provider_selector&#39; or\n&quot;</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;          <span class="stringliteral">&quot;a `CSIPluginTypeSelector` under &#39;csi_plugin_type_selector&#39; to\n&quot;</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;          <span class="stringliteral">&quot;specify the set of resource providers this profile applies to,\n&quot;</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;          <span class="stringliteral">&quot;followed by a `VolumeCapability` unde
 r &#39;volume_capabilities&#39;\n&quot;</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;          <span class="stringliteral">&quot;and a free-form string-string mapping under &#39;create_parameters&#39;.\n&quot;</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;          <span class="stringliteral">&quot;\n&quot;</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;          <span class="stringliteral">&quot;The JSON is modeled after a protobuf found in\n&quot;</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;          <span class="stringliteral">&quot;`src/resource_provider/storage/disk_profile.proto`.\n&quot;</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;          <span class="stringliteral">&quot;\n&quot;</span></div><div class="line"><a name="l00087"></a><span class="lineno">  
  87</span>&#160;          <span class="stringliteral">&quot;For example:\n&quot;</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;          <span class="stringliteral">&quot;{\n&quot;</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;          <span class="stringliteral">&quot;  \&quot;profile_matrix\&quot; : {\n&quot;</span></div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;          <span class="stringliteral">&quot;    \&quot;my-profile\&quot; : {\n&quot;</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;          <span class="stringliteral">&quot;      \&quot;csi_plugin_type_selector\&quot;: {\n&quot;</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;          <span class="stringliteral">&quot;        \&quot;plugin_type\&quot; : \&quot;org.apache.mesos.csi.test\&quot;\n&quot;</span></div>
 <div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;          <span class="stringliteral">&quot;      \&quot;},\n&quot;</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;          <span class="stringliteral">&quot;      \&quot;volume_capabilities\&quot; : {\n&quot;</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;          <span class="stringliteral">&quot;        \&quot;block\&quot; : {},\n&quot;</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;          <span class="stringliteral">&quot;        \&quot;access_mode\&quot; : { \&quot;mode\&quot; : \&quot;SINGLE_NODE_WRITER\&quot; }\n&quot;</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;          <span class="stringliteral">&quot;      },\n&quot;</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;          <s
 pan class="stringliteral">&quot;      \&quot;create_parameters\&quot; : {\n&quot;</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;          <span class="stringliteral">&quot;        \&quot;mesos-does-not\&quot; : \&quot;interpret-these\&quot;,\n&quot;</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;          <span class="stringliteral">&quot;        \&quot;type\&quot; : \&quot;raid5\&quot;,\n&quot;</span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;          <span class="stringliteral">&quot;        \&quot;stripes\&quot; : \&quot;3\&quot;,\n&quot;</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;          <span class="stringliteral">&quot;        \&quot;stripesize\&quot; : \&quot;64\&quot;\n&quot;</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;          <span class="stringliteral
 ">&quot;      }\n&quot;</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;          <span class="stringliteral">&quot;    }\n&quot;</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;          <span class="stringliteral">&quot;  }\n&quot;</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;          <span class="stringliteral">&quot;}&quot;</span>,</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;          static_cast&lt;const Path*&gt;(<span class="keyword">nullptr</span>),</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;          [](<span class="keyword">const</span> <a class="code" href="classPath.html">Path</a>&amp; value) -&gt; <a class="code" href="classOption.html">Option&lt;Error&gt;</a> {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            <span cla
 ss="comment">// For now, just check if the URI has a supported scheme.</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <span class="comment">//</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <span class="comment">// TODO(josephw): Once we have a proper URI class and parser,</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <span class="comment">// consider validating this URI more thoroughly.</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="namespacestrings.html#aa5513faacb213c7e097c0d43af43d9c7">strings::startsWith</a>(value.<a class="code" href="classPath.html#a9d36a94d674e3f889eb8f46dc7a156b8">string</a>(), <span class="stringliteral">&quot;http://&quot;</span>)</div><div class="line"><a name="l00114"></a><span 
 class="lineno">  114</span>&#160;#ifdef USE_SSL_SOCKET</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                || (<a class="code" href="decoder_8hpp.html#abb0829cce9dd20a40ae0d86890ae85c6">process::network::openssl::flags</a>().enabled &amp;&amp;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                    <a class="code" href="namespacestrings.html#aa5513faacb213c7e097c0d43af43d9c7">strings::startsWith</a>(value.<a class="code" href="classPath.html#a9d36a94d674e3f889eb8f46dc7a156b8">string</a>(), <span class="stringliteral">&quot;https://&quot;</span>))</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#endif // USE_SSL_SOCKET</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            ) {</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;              <a class="co
 de" href="classTry.html">Try&lt;process::http::URL&gt;</a> url =</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                <a class="code" href="structprocess_1_1http_1_1URL.html#aeb5accae04a1e271d4fdafa22131c150">process::http::URL::parse</a>(value.<a class="code" href="classPath.html#a9d36a94d674e3f889eb8f46dc7a156b8">string</a>());</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;              <span class="keywordflow">if</span> (url.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">&quot;Failed to parse URI: &quot;</span> + url.<a class="code" href="classTry.html#aec4a11ddd
 3c036e889d90b7eb6258ba7">error</a>());</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;              }</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;              <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            }</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="comment">// NOTE: The `Path` class will strip off the &#39;file://&#39; prefix.</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="namespacestrings.html#a269921757daf11096d3f5e02686f8444">
 strings::contains</a>(value.<a class="code" href="classPath.html#a9d36a94d674e3f889eb8f46dc7a156b8">string</a>(), <span class="stringliteral">&quot;://&quot;</span>)) {</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;              <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                  <span class="stringliteral">&quot;--uri must use a supported scheme (file or http(s))&quot;</span>);</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            }</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            <span class="comment">// We only allow absolute paths for file paths.</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;   
          <span class="keywordflow">if</span> (!value.<a class="code" href="classPath.html#a240c7b71a23c8e97b5490dbae75cc948">absolute</a>()) {</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;              <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">&quot;--uri to a file must be an absolute path&quot;</span>);</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;            }</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;          });</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name
 ="l00143"></a><span class="lineno">  143</span>&#160;      <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#aff3b281cc2a2c6a0bf0dc598482efbae">Flags::poll_interval</a>,</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;          <span class="stringliteral">&quot;poll_interval&quot;</span>,</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;          <span class="stringliteral">&quot;How long to wait between polling the specified `--uri`.\n&quot;</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;          <span class="stringliteral">&quot;The time is checked each time the `translate` method is called.\n&quot;</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;          <span class="stringliteral">&q
 uot;If the given time has elapsed, then the URI is re-fetched.\n&quot;</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;          <span class="stringliteral">&quot;If not specified, the URI is only fetched once.&quot;</span>,</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;          [](<span class="keyword">const</span> <a class="code" href="classOption.html">Option&lt;Duration&gt;</a>&amp; value) -&gt; <a class="code" href="classOption.html">Option&lt;Error&gt;</a> {</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            <span class="keywordflow">if</span> (value.<a class="code" href="classOption.html#a4e3bf8416d95246f43c91f1b5c309323">isSome</a>() &amp;&amp; value.<a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>() &lt;= <a class="code" href="classSeconds.html">Seconds</a>(0)) {</div><div class="line"><a name="l00151"></a><span class="
 lineno">  151</span>&#160;              <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">&quot;--poll_interval must be non-negative&quot;</span>);</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;            }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;          });</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;      <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_
 1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2f95281a8b197431418da487761b22d9">Flags::max_random_wait</a>,</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;          <span class="stringliteral">&quot;max_random_wait&quot;</span>,</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;          <span class="stringliteral">&quot;How long at most to wait between discovering a new set of profiles\n&quot;</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;          <span class="stringliteral">&quot;and notifying the callers of `watch`. The actual wait time is a\n&quot;</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;          <span class="stringliteral">&quot;uniform random value between 0 and this value. If `--uri` points\n&quot;</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;          <span class=
 "stringliteral">&quot;to a centralized location, it may be good to scale this number\n&quot;</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;          <span class="stringliteral">&quot;according to the number of resource providers in the cluster.&quot;</span>,</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;          <a class="code" href="classSeconds.html">Seconds</a>(0),</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;          [](<span class="keyword">const</span> <a class="code" href="classDuration.html">Duration</a>&amp; value) -&gt; <a class="code" href="classOption.html">Option&lt;Error&gt;</a> {</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            <span class="keywordflow">if</span> (value &lt; <a class="code" href="classSeconds.html">Seconds</a>(0)) {</div><div class="line"><a name="l00167"></a><span class="lineno">  167</
 span>&#160;              <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">&quot;--max_random_wait must be zero or greater&quot;</span>);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            }</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;          });</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="comment">// NOTE: We use the `Path` type here so that t
 he stout flags parser</span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="comment">// does not attempt to read a file if given a `file://` prefixed value.</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="comment">//</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="comment">// TODO(josephw): Replace with a URI type when stout gets one.</span></div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2ffb60f4d9923cc1791fd59c5cd45a1a">  178</a></span>&#160;    <a class="code" href="classPath.html">Path</a> <a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2ffb60f4d9923cc1791fd59c5cd45a1a">uri</a>;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</s
 pan>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#aff3b281cc2a2c6a0bf0dc598482efbae">  180</a></span>&#160;    <a class="code" href="classOption.html">Option&lt;Duration&gt;</a> <a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#aff3b281cc2a2c6a0bf0dc598482efbae">poll_interval</a>;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2f95281a8b197431418da487761b22d9">  181</a></span>&#160;    <a class="code" href="classDuration.html">Duration</a> <a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2f95281a8b197431418da487761b22d9">max_random_wait</a>;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  };</div><div class="line"><a name
 ="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;  <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a42899d4a38c59c8ea1a141ffc5e17d9a">UriDiskProfileAdaptor</a>(<span class="keyword">const</span> <a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html">Flags</a>&amp; _flags);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a7a5f65d93bc176be7312bc9bec2ee87f">~UriDiskProfileAdaptor</a>();</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name
 ="l00189"></a><span class="lineno">  189</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future&lt;DiskProfileAdaptor::ProfileInfo&gt;</a> <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#aca95d2463b19eaa4943799c918fd14d3">translate</a>(</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;      <span class="keyword">const</span> std::string&amp; profile,</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;      <span class="keyword">const</span> ResourceProviderInfo&amp; resourceProviderInfo) <span class="keyword">override</span>;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future&lt;hashset&lt;std::string
 &gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a78238dcf4390fc6932b5ea7db43f0e68">watch</a>(</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;      <span class="keyword">const</span> <a class="code" href="classhashset.html">hashset&lt;std::string&gt;</a>&amp; knownProfiles,</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;      <span class="keyword">const</span> ResourceProviderInfo&amp; resourceProviderInfo) <span class="keyword">override</span>;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a8d8f8910e9c1da5f1ca31d191b591d82">  198</a></span>&#160;  <a class
 ="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html">Flags</a> <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a8d8f8910e9c1da5f1ca31d191b591d82">flags</a>;</div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#ac061c8a485083fc218a3bc63efe21aea">  199</a></span>&#160;  <a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;UriDiskProfileAdaptorProcess&gt;</a> <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#ac061c8a485083fc218a3bc63efe21aea">process</a>;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;};</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno
 "><a class="line" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptorProcess.html">  203</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptorProcess.html">UriDiskProfileAdaptorProcess</a> :</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;  <span class="keyword">public</span> <a class="code" href="classprocess_1_1Process.html">process::Process</a>&lt;UriDiskProfileAdaptorProcess&gt;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;{</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;  <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptorProcess.html">UriDiskProfileAdaptorProcess</a>(<span class="keyword">const</span> <a class="code" href="structmesos
 _1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html">UriDiskProfileAdaptor::Flags</a>&amp; _flags);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespacesystemd.html#a4e45b8163baf6d307c9884d624472402">initialize</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;  <a class="code" href="classprocess_1_1Future.html">process::Future&lt;DiskProfileAdaptor::ProfileInfo&gt;</a> <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#aca95d2463b19eaa4943799c918fd14d3">translate</a>(</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;      <sp
 an class="keyword">const</span> std::string&amp; profile,</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;      <span class="keyword">const</span> ResourceProviderInfo&amp; resourceProviderInfo);</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;  <a class="code" href="classprocess_1_1Future.html">process::Future&lt;hashset&lt;std::string&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a78238dcf4390fc6932b5ea7db43f0e68">watch</a>(</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;      <span class="keyword">const</span> <a class="code" href="classhashset.html">hashset&lt;std::string&gt;</a>&amp; knownProfiles,</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;      <span class="keyword">const</span> ResourceProviderInfo
 &amp; resourceProviderInfo);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;  <span class="comment">// Helpers for fetching the `--uri`.</span></div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;  <span class="comment">// If `--poll_interval` is set, this method will dispatch to itself with</span></div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;  <span class="comment">// a delay once the fetch is complete.</span></div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="namespaceprocess_1_1io.html#af71c45e0a85e21f6b39060f4e716cebf">poll</a>();</div><div class="line"><a name="l00224"></a><span cl
 ass="lineno">  224</span>&#160;  <span class="keywordtype">void</span> _poll(<span class="keyword">const</span> <a class="code" href="classTry.html">Try&lt;std::string&gt;</a>&amp; fetched);</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;  <span class="comment">// Helper that is called upon successfully polling and parsing the `--uri`.</span></div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;  <span class="comment">// This method will check the following conditions before updating the state</span></div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;  <span class="comment">// of the module:</span></div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;  <span class="comment">//   * All known profiles must be included in the updated set.</span></div><div class="line"><a name="
 l00230"></a><span class="lineno">  230</span>&#160;  <span class="comment">//   * All properties of known profiles must match those in the updated set.</span></div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;  <span class="keywordtype">void</span> notify(<span class="keyword">const</span> resource_provider::DiskProfileMapping&amp; parsed);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  <a class="code" href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html">UriDiskProfileAdaptor::Flags</a> <a class="code" href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a8d8f8910e9c1da5f1ca31d191b591d82">flags</a>;</div><div class="line"><a name="l00235"></a><span class="lineno">  23
 5</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  <span class="comment">// The last fetched profile mapping.</span></div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;  <span class="comment">// This module assumes that profiles can only be added and never</span></div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  <span class="comment">// removed. Once added, a profile&#39;s volume capability and parameters</span></div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;  <span class="comment">// cannot be changed either.</span></div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;  <span class="comment">//</span></div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  <span class="comment">// TODO(josephw): Consider persisting this mapping across agent restarts.</span></div><div class="
 line"><a name="l00242"></a><span class="lineno">  242</span>&#160;  std::map&lt;std::string, resource_provider::DiskProfileMapping::CSIManifest&gt;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    profileMatrix;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;  <span class="comment">// Will be satisfied whenever `profileMatrix` is changed.</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  <a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;process::Promise&lt;Nothing&gt;</a>&gt; watchPromise;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;};</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;} <span class="comment">// name
 space storage {</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;} <span class="comment">// namespace internal {</span></div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;} <span class="comment">// namespace mesos {</span></div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="preprocessor">#endif // __RESOURCE_PROVIDER_URI_DISK_PROFILE_ADAPTOR_HPP__</span></div><div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptorProcess_html"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptorProcess.html">mesos::internal::storage::UriDiskProfileAdaptorProcess</a></div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:203</div></div>
+<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div>
+<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option&lt; Error &gt;</a></div></div>
+<div class="ttc" id="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags_html_aff3b281cc2a2c6a0bf0dc598482efbae"><div class="ttname"><a href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#aff3b281cc2a2c6a0bf0dc598482efbae">mesos::internal::storage::UriDiskProfileAdaptor::Flags::poll_interval</a></div><div class="ttdeci">Option&lt; Duration &gt; poll_interval</div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:180</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_html_aca95d2463b19eaa4943799c918fd14d3"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#aca95d2463b19eaa4943799c918fd14d3">mesos::internal::storage::UriDiskProfileAdaptor::translate</a></div><div class="ttdeci">virtual process::Future&lt; DiskProfileAdaptor::ProfileInfo &gt; translate(const std::string &amp;profile, const ResourceProviderInfo &amp;resourceProviderInfo) override</div><div class="ttdoc">Returns the CSI volume capability and the parameters to create CSI volumes associated with the profil...</div></div>
+<div class="ttc" id="structprocess_1_1http_1_1URL_html_aeb5accae04a1e271d4fdafa22131c150"><div class="ttname"><a href="structprocess_1_1http_1_1URL.html#aeb5accae04a1e271d4fdafa22131c150">process::http::URL::parse</a></div><div class="ttdeci">static Try&lt; URL &gt; parse(const std::string &amp;urlString)</div></div>
+<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_html_a78238dcf4390fc6932b5ea7db43f0e68"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a78238dcf4390fc6932b5ea7db43f0e68">mesos::internal::storage::UriDiskProfileAdaptor::watch</a></div><div class="ttdeci">virtual process::Future&lt; hashset&lt; std::string &gt; &gt; watch(const hashset&lt; std::string &gt; &amp;knownProfiles, const ResourceProviderInfo &amp;resourceProviderInfo) override</div><div class="ttdoc">Returns a future that will be satisifed iff the set of profiles known by the module differs from the ...</div></div>
+<div class="ttc" id="classhashset_html"><div class="ttname"><a href="classhashset.html">hashset&lt; std::string &gt;</a></div></div>
+<div class="ttc" id="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags_html"><div class="ttname"><a href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html">mesos::internal::storage::UriDiskProfileAdaptor::Flags</a></div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:66</div></div>
+<div class="ttc" id="namespaceprocess_1_1io_html_af71c45e0a85e21f6b39060f4e716cebf"><div class="ttname"><a href="namespaceprocess_1_1io.html#af71c45e0a85e21f6b39060f4e716cebf">process::io::poll</a></div><div class="ttdeci">Future&lt; short &gt; poll(int_fd fd, short events)</div><div class="ttdoc">Returns the events (a subset of the events specified) that can be performed on the specified file des...</div></div>
+<div class="ttc" id="classDuration_html"><div class="ttname"><a href="classDuration.html">Duration</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:32</div></div>
+<div class="ttc" id="classOption_html_a4e3bf8416d95246f43c91f1b5c309323"><div class="ttname"><a href="classOption.html#a4e3bf8416d95246f43c91f1b5c309323">Option::isSome</a></div><div class="ttdeci">bool isSome() const </div><div class="ttdef"><b>Definition:</b> option.hpp:115</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_html_a7a5f65d93bc176be7312bc9bec2ee87f"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a7a5f65d93bc176be7312bc9bec2ee87f">mesos::internal::storage::UriDiskProfileAdaptor::~UriDiskProfileAdaptor</a></div><div class="ttdeci">virtual ~UriDiskProfileAdaptor()</div></div>
+<div class="ttc" id="disk__profile__utils_8hpp_html"><div class="ttname"><a href="disk__profile__utils_8hpp.html">disk_profile_utils.hpp</a></div></div>
+<div class="ttc" id="namespacestrings_html_a269921757daf11096d3f5e02686f8444"><div class="ttname"><a href="namespacestrings.html#a269921757daf11096d3f5e02686f8444">strings::contains</a></div><div class="ttdeci">bool contains(const std::string &amp;s, const std::string &amp;substr)</div><div class="ttdef"><b>Definition:</b> strings.hpp:406</div></div>
+<div class="ttc" id="duration_8hpp_html"><div class="ttname"><a href="duration_8hpp.html">duration.hpp</a></div></div>
+<div class="ttc" id="namespacesystemd_html_a4e45b8163baf6d307c9884d624472402"><div class="ttname"><a href="namespacesystemd.html#a4e45b8163baf6d307c9884d624472402">systemd::initialize</a></div><div class="ttdeci">Try&lt; Nothing &gt; initialize(const Flags &amp;flags)</div><div class="ttdoc">Initialized state for support of systemd functions in this file. </div></div>
+<div class="ttc" id="classPath_html"><div class="ttname"><a href="classPath.html">Path</a></div><div class="ttdoc">Represents a POSIX or Windows file system path and offers common path manipulations. </div><div class="ttdef"><b>Definition:</b> path.hpp:145</div></div>
+<div class="ttc" id="path_8hpp_html"><div class="ttname"><a href="path_8hpp.html">path.hpp</a></div></div>
+<div class="ttc" id="classSeconds_html"><div class="ttname"><a href="classSeconds.html">Seconds</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:207</div></div>
+<div class="ttc" id="classflags_1_1FlagsBase_html"><div class="ttname"><a href="classflags_1_1FlagsBase.html">flags::FlagsBase</a></div><div class="ttdef"><b>Definition:</b> flags.hpp:44</div></div>
+<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:30</div></div>
+<div class="ttc" id="3rdparty_2stout_2include_2stout_2flags_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2flags_8hpp.html">flags.hpp</a></div></div>
+<div class="ttc" id="resource__provider_2storage_2disk__profile__adaptor_8hpp_html"><div class="ttname"><a href="resource__provider_2storage_2disk__profile__adaptor_8hpp.html">disk_profile_adaptor.hpp</a></div></div>
+<div class="ttc" id="classOption_html_a21358442c0fac1cc978a67a9a9089a79"><div class="ttname"><a href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">Option::get</a></div><div class="ttdeci">const T &amp; get() const &amp;</div><div class="ttdef"><b>Definition:</b> option.hpp:118</div></div>
+<div class="ttc" id="classmesos_1_1DiskProfileAdaptor_html"><div class="ttname"><a href="classmesos_1_1DiskProfileAdaptor.html">mesos::DiskProfileAdaptor</a></div><div class="ttdoc">This module is used by Storage Resource Providers to translate the &quot;profile&quot; field of a Resource::Dis...</div><div class="ttdef"><b>Definition:</b> disk_profile_adaptor.hpp:52</div></div>
+<div class="ttc" id="classPath_html_a240c7b71a23c8e97b5490dbae75cc948"><div class="ttname"><a href="classPath.html#a240c7b71a23c8e97b5490dbae75cc948">Path::absolute</a></div><div class="ttdeci">bool absolute() const </div><div class="ttdef"><b>Definition:</b> path.hpp:306</div></div>
+<div class="ttc" id="option_8hpp_html"><div class="ttname"><a href="option_8hpp.html">option.hpp</a></div></div>
+<div class="ttc" id="classTry_html_aec4a11ddd3c036e889d90b7eb6258ba7"><div class="ttname"><a href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">Try::error</a></div><div class="ttdeci">static Try error(const E &amp;e)</div><div class="ttdef"><b>Definition:</b> try.hpp:42</div></div>
+<div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div>
+<div class="ttc" id="decoder_8hpp_html_abb0829cce9dd20a40ae0d86890ae85c6"><div class="ttname"><a href="decoder_8hpp.html#abb0829cce9dd20a40ae0d86890ae85c6">flags</a></div><div class="ttdeci">#define flags</div><div class="ttdef"><b>Definition:</b> decoder.hpp:18</div></div>
+<div class="ttc" id="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags_html_ab4e89182c53b60ad6ddf389ce595612a"><div class="ttname"><a href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#ab4e89182c53b60ad6ddf389ce595612a">mesos::internal::storage::UriDiskProfileAdaptor::Flags::Flags</a></div><div class="ttdeci">Flags()</div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:68</div></div>
+<div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div>
+<div class="ttc" id="structNone_html"><div class="ttname"><a href="structNone.html">None</a></div><div class="ttdef"><b>Definition:</b> none.hpp:27</div></div>
+<div class="ttc" id="namespaceinternal_html"><div class="ttname"><a href="namespaceinternal.html">internal</a></div><div class="ttdef"><b>Definition:</b> attributes.hpp:24</div></div>
+<div class="ttc" id="classTry_html_a0b98f95163b8a38daafd1651b043a276"><div class="ttname"><a href="classTry.html#a0b98f95163b8a38daafd1651b043a276">Try::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> try.hpp:71</div></div>
+<div class="ttc" id="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags_html_a2ffb60f4d9923cc1791fd59c5cd45a1a"><div class="ttname"><a href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2ffb60f4d9923cc1791fd59c5cd45a1a">mesos::internal::storage::UriDiskProfileAdaptor::Flags::uri</a></div><div class="ttdeci">Path uri</div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:178</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_html"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html">mesos::internal::storage::UriDiskProfileAdaptor</a></div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:63</div></div>
+<div class="ttc" id="classflags_1_1FlagsBase_html_a09ebe840242a3b0fbd3263bb6c7ca226"><div class="ttname"><a href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">flags::FlagsBase::add</a></div><div class="ttdeci">void add(T1 Flags::*t1, const Name &amp;name, const Option&lt; Name &gt; &amp;alias, const std::string &amp;help, const T2 *t2, F validate)</div><div class="ttdef"><b>Definition:</b> flags.hpp:333</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_html_a42899d4a38c59c8ea1a141ffc5e17d9a"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a42899d4a38c59c8ea1a141ffc5e17d9a">mesos::internal::storage::UriDiskProfileAdaptor::UriDiskProfileAdaptor</a></div><div class="ttdeci">UriDiskProfileAdaptor(const Flags &amp;_flags)</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_html_ac061c8a485083fc218a3bc63efe21aea"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#ac061c8a485083fc218a3bc63efe21aea">mesos::internal::storage::UriDiskProfileAdaptor::process</a></div><div class="ttdeci">process::Owned&lt; UriDiskProfileAdaptorProcess &gt; process</div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:199</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_html_a8d8f8910e9c1da5f1ca31d191b591d82"><div class="ttname"><a href="classmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor.html#a8d8f8910e9c1da5f1ca31d191b591d82">mesos::internal::storage::UriDiskProfileAdaptor::flags</a></div><div class="ttdeci">Flags flags</div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:198</div></div>
+<div class="ttc" id="owned_8hpp_html"><div class="ttname"><a href="owned_8hpp.html">owned.hpp</a></div></div>
+<div class="ttc" id="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags_html_a2f95281a8b197431418da487761b22d9"><div class="ttname"><a href="structmesos_1_1internal_1_1storage_1_1UriDiskProfileAdaptor_1_1Flags.html#a2f95281a8b197431418da487761b22d9">mesos::internal::storage::UriDiskProfileAdaptor::Flags::max_random_wait</a></div><div class="ttdeci">Duration max_random_wait</div><div class="ttdef"><b>Definition:</b> uri_disk_profile_adaptor.hpp:181</div></div>
+<div class="ttc" id="classprocess_1_1Owned_html"><div class="ttname"><a href="classprocess_1_1Owned.html">process::Owned</a></div><div class="ttdef"><b>Definition:</b> owned.hpp:35</div></div>
+<div class="ttc" id="namespacestrings_html_aa5513faacb213c7e097c0d43af43d9c7"><div class="ttname"><a href="namespacestrings.html#aa5513faacb213c7e097c0d43af43d9c7">strings::startsWith</a></div><div class="ttdeci">bool startsWith(const std::string &amp;s, const std::string &amp;prefix)</div><div class="ttdef"><b>Definition:</b> strings.hpp:380</div></div>
+<div class="ttc" id="classprocess_1_1Process_html"><div class="ttname"><a href="classprocess_1_1Process.html">process::Process</a></div><div class="ttdef"><b>Definition:</b> process.hpp:493</div></div>
+<div class="ttc" id="classPath_html_a9d36a94d674e3f889eb8f46dc7a156b8"><div class="ttname"><a href="classPath.html#a9d36a94d674e3f889eb8f46dc7a156b8">Path::string</a></div><div class="ttdeci">const std::string &amp; string() const </div><div class="ttdef"><b>Definition:</b> path.hpp:317</div></div>
+<div class="ttc" id="include_2csi_2spec_8hpp_html"><div class="ttname"><a href="include_2csi_2spec_8hpp.html">spec.hpp</a></div></div>
+<div class="ttc" id="3rdparty_2libprocess_2include_2process_2ssl_2flags_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2ssl_2flags_8hpp.html">flags.hpp</a></div></div>
+<div class="ttc" id="libprocess_2include_2process_2process_8hpp_html"><div class="ttname"><a href="libprocess_2include_2process_2process_8hpp.html">process.hpp</a></div></div>
+<div class="ttc" id="strings_8hpp_html"><div class="ttname"><a href="strings_8hpp.html">strings.hpp</a></div></div>
+<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future</a></div><div class="ttdef"><b>Definition:</b> future.hpp:57</div></div>
+</div><!-- fragment --></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.11
+</small></address>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/937d024f/content/api/latest/c++/usage_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/usage_8hpp_source.html b/content/api/latest/c++/usage_8hpp_source.html
index 9e74a6b..7d6f8b6 100644
--- a/content/api/latest/c++/usage_8hpp_source.html
+++ b/content/api/latest/c++/usage_8hpp_source.html
@@ -57,7 +57,7 @@
 <div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:187</div></div>
 <div class="ttc" id="namespacemesos_1_1internal_html_a91a5bc5e418e8712bb512721b5abc46d"><div class="ttname"><a href="namespacemesos_1_1internal.html#a91a5bc5e418e8712bb512721b5abc46d">mesos::internal::usage</a></div><div class="ttdeci">Try&lt; ResourceStatistics &gt; usage(pid_t pid, bool mem=true, bool cpus=true)</div></div>
 <div class="ttc" id="namespaceos_html_afd08813156fea899c86b340d9767a8cd"><div class="ttname"><a href="namespaceos.html#afd08813156fea899c86b340d9767a8cd">os::cpus</a></div><div class="ttdeci">Try&lt; long &gt; cpus()</div><div class="ttdef"><b>Definition:</b> os.hpp:280</div></div>
-<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:23</div></div>
+<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:30</div></div>
 <div class="ttc" id="namespaceinternal_html"><div class="ttname"><a href="namespaceinternal.html">internal</a></div><div class="ttdef"><b>Definition:</b> attributes.hpp:24</div></div>
 </div><!-- fragment --></div><!-- contents -->
 <!-- start footer part -->

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/937d024f/content/api/latest/c++/v0__v1executor_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/v0__v1executor_8hpp_source.html b/content/api/latest/c++/v0__v1executor_8hpp_source.html
index 2140bca..a35d986 100644
--- a/content/api/latest/c++/v0__v1executor_8hpp_source.html
+++ b/content/api/latest/c++/v0__v1executor_8hpp_source.html
@@ -65,7 +65,7 @@
 <div class="ttc" id="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter_html_abec4b6af2ed927f4a7f8e2598399cb58"><div class="ttname"><a href="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter.html#abec4b6af2ed927f4a7f8e2598399cb58">mesos::v1::executor::V0ToV1Adapter::disconnected</a></div><div class="ttdeci">virtual void disconnected(ExecutorDriver *driver) override</div></div>
 <div class="ttc" id="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter_html_a709bf2c62e58d88204fdabc6f020cd34"><div class="ttname"><a href="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter.html#a709bf2c62e58d88204fdabc6f020cd34">mesos::v1::executor::V0ToV1Adapter::registered</a></div><div class="ttdeci">virtual void registered(ExecutorDriver *driver, const mesos::ExecutorInfo &amp;executorInfo, const mesos::FrameworkInfo &amp;frameworkInfo, const mesos::SlaveInfo &amp;slaveInfo) override</div></div>
 <div class="ttc" id="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter_html_a204a93410a8825a916dff56b5f8195c0"><div class="ttname"><a href="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter.html#a204a93410a8825a916dff56b5f8195c0">mesos::v1::executor::V0ToV1Adapter::shutdown</a></div><div class="ttdeci">virtual void shutdown(ExecutorDriver *driver) override</div></div>
-<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:23</div></div>
+<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:30</div></div>
 <div class="ttc" id="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter_html_a43bb60de5554f9b71dd05488caac080d"><div class="ttname"><a href="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter.html#a43bb60de5554f9b71dd05488caac080d">mesos::v1::executor::V0ToV1Adapter::V0ToV1Adapter</a></div><div class="ttdeci">V0ToV1Adapter(const std::function&lt; void(void)&gt; &amp;connected, const std::function&lt; void(void)&gt; &amp;disconnected, const std::function&lt; void(const std::queue&lt; Event &gt; &amp;)&gt; &amp;received)</div></div>
 <div class="ttc" id="classmesos_1_1Executor_html"><div class="ttname"><a href="classmesos_1_1Executor.html">mesos::Executor</a></div><div class="ttdef"><b>Definition:</b> executor.hpp:74</div></div>
 <div class="ttc" id="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter_html_a33de8a9b962ec6ddd8307f441f5687e9"><div class="ttname"><a href="classmesos_1_1v1_1_1executor_1_1V0ToV1Adapter.html#a33de8a9b962ec6ddd8307f441f5687e9">mesos::v1::executor::V0ToV1Adapter::reregistered</a></div><div class="ttdeci">virtual void reregistered(ExecutorDriver *driver, const mesos::SlaveInfo &amp;slaveInfo) override</div></div>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/937d024f/content/api/latest/c++/v1_2agent_2agent_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/v1_2agent_2agent_8hpp_source.html b/content/api/latest/c++/v1_2agent_2agent_8hpp_source.html
index 65b6129..e0987f7 100644
--- a/content/api/latest/c++/v1_2agent_2agent_8hpp_source.html
+++ b/content/api/latest/c++/v1_2agent_2agent_8hpp_source.html
@@ -53,7 +53,7 @@
 </div><!--header-->
 <div class="contents">
 <a href="v1_2agent_2agent_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a>
 <span class="lineno">    6</span>&#160;<span class="comment">// &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// 
 distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#ifndef __MESOS_V1_AGENT_PROTO_HPP__</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#define __MESOS_V1_AGENT_PROTO_HPP__</span></div>
 <div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// ONLY USEFUL AFTER RUNNING PROTOC.</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;mesos/v1/agent/agent.pb.h&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemesos.html">mesos</a> {</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespacemesos_1_1v1.html">   26</a
 ></span>&#160;<span class="keyword">namespace </span>v1 {</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespacemesos_1_1v1_1_1agent.html">   27</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemesos_1_1v1_1_1agent.html">agent</a> {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespacemesos_1_1v1_1_1agent.html#a60f181f4c68e9116edf49c02208156b1">   29</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="namespacemesos_1_1v1_1_1agent.html#a60f181f4c68e9116edf49c02208156b1">operator&lt;&lt;</a>(std::ostream&amp; stream, <span class="keyword">const</span> <a class="code" href="namespacemesos_1_1internal_1_1capabilities.html#aaa5ec6d56ccbeba718b9e8fc6ec2f7c9">Call::Type</a>&amp; <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e264
 2db514496ba8380776487fba">type</a>)</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  <span class="keywordflow">return</span> stream &lt;&lt; Call::Type_Name(type);</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;}</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespacemesos_1_1v1_1_1agent.html#a7e1398d08d65db4b558bc027b2a3e0e3">   35</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="namespacemesos_1_1v1_1_1agent.html#a60f181f4c68e9116edf49c02208156b1">operator&lt;&lt;</a>(</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  std::ostream&amp; stream, <
 span class="keyword">const</span> <a class="code" href="namespacemesos_1_1internal_1_1capabilities.html#aaa5ec6d56ccbeba718b9e8fc6ec2f7c9">Response::Type</a>&amp; <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>)</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <span class="keywordflow">return</span> stream &lt;&lt; Response::Type_Name(type);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;}</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;} <span class="comment">// namespace agent {</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;} <span class="comment">// namespace v1 {</span></div><div class="line"><a name="l00043">
 </a><span class="lineno">   43</span>&#160;} <span class="comment">// namespace mesos {</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#endif // __MESOS_V1_AGENT_PROTO_HPP__</span></div><div class="ttc" id="namespacemesos_1_1v1_1_1agent_html"><div class="ttname"><a href="namespacemesos_1_1v1_1_1agent.html">mesos::v1::agent</a></div><div class="ttdef"><b>Definition:</b> agent.hpp:27</div></div>
-<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:23</div></div>
+<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:30</div></div>
 <div class="ttc" id="namespacemesos_1_1v1_1_1agent_html_a60f181f4c68e9116edf49c02208156b1"><div class="ttname"><a href="namespacemesos_1_1v1_1_1agent.html#a60f181f4c68e9116edf49c02208156b1">mesos::v1::agent::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;stream, const Call::Type &amp;type)</div><div class="ttdef"><b>Definition:</b> agent.hpp:29</div></div>
 <div class="ttc" id="namespacemesos_1_1internal_1_1capabilities_html_aaa5ec6d56ccbeba718b9e8fc6ec2f7c9"><div class="ttname"><a href="namespacemesos_1_1internal_1_1capabilities.html#aaa5ec6d56ccbeba718b9e8fc6ec2f7c9">mesos::internal::capabilities::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> capabilities.hpp:79</div></div>
 <div class="ttc" id="namespacemesos_1_1internal_1_1fs_html_a2343e2642db514496ba8380776487fba"><div class="ttname"><a href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">mesos::internal::fs::type</a></div><div class="ttdeci">Try&lt; uint32_t &gt; type(const std::string &amp;path)</div></div>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/937d024f/content/api/latest/c++/v1_2resource__provider_2resource__provider_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/v1_2resource__provider_2resource__provider_8hpp_source.html b/content/api/latest/c++/v1_2resource__provider_2resource__provider_8hpp_source.html
index 189a15e..c2f80a33 100644
--- a/content/api/latest/c++/v1_2resource__provider_2resource__provider_8hpp_source.html
+++ b/content/api/latest/c++/v1_2resource__provider_2resource__provider_8hpp_source.html
@@ -53,7 +53,7 @@
 </div><!--header-->
 <div class="contents">
 <a href="v1_2resource__provider_2resource__provider_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="l
 ine"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160
 ;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#ifndef __MESOS_V1_RESOURCE_PROVIDER_PROTO_HPP__</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#define __M
 ESOS_V1_RESOURCE_PROVIDER_PROTO_HPP__</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// ONLY USEFUL AFTER RUNNING PROTOC.</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;mesos/v1/resource_provider/resource_provider.pb.h&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemesos.html">mesos</a> {</div><div class="line"><a name="l00026"></a><spa
 n class="lineno">   26</span>&#160;<span class="keyword">namespace </span>v1 {</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespacemesos_1_1v1_1_1resource__provider.html">   27</a></span>&#160;<span class="keyword">namespace </span>resource_provider {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespacemesos_1_1v1_1_1resource__provider.html#a1c10bb4a714145a80318f7fe0c833163">   29</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="namespacemesos_1_1v1_1_1resource__provider.html#a1c10bb4a714145a80318f7fe0c833163">operator&lt;&lt;</a>(</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    std::ostream&amp; stream,</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keyword">const</span> Call::Upd
 atePublishResourcesStatus::Status&amp; <a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">status</a>)</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <span class="keywordflow">return</span> stream &lt;&lt; Call::UpdatePublishResourcesStatus::Status_Name(status);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;}</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespacemesos_1_1v1_1_1resource__provider.html#acf75083a8765f804d987e35540923da4">   37</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="namespacemesos_1_1v1_1_1resource__provider.html#a1c10bb4a714145a80
 318f7fe0c833163">operator&lt;&lt;</a>(</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    std::ostream&amp; stream,</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">const</span> <a class="code" href="namespacemesos_1_1internal_1_1capabilities.html#aaa5ec6d56ccbeba718b9e8fc6ec2f7c9">Event::Type</a>&amp; eventType)</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;{</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keywordflow">return</span> stream &lt;&lt; Event::Type_Name(eventType);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;}</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;} <span class="comment">// namespace resource_provider {</span></div><div class
 ="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;} <span class="comment">// namespace v1 {</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;} <span class="comment">// namespace mesos {</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#endif // __MESOS_V1_RESOURCE_PROVIDER_PROTO_HPP__</span></div><div class="ttc" id="namespaceproc_html_a34396c6140a28f583dc13fee3c3c35d4"><div class="ttname"><a href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">proc::status</a></div><div class="ttdeci">Result&lt; ProcessStatus &gt; status(pid_t pid)</div><div class="ttdef"><b>Definition:</b> proc.hpp:166</div></div>
-<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:23</div></div>
+<div class="ttc" id="namespacemesos_html"><div class="ttname"><a href="namespacemesos.html">mesos</a></div><div class="ttdef"><b>Definition:</b> spec.hpp:30</div></div>
 <div class="ttc" id="namespacemesos_1_1internal_1_1capabilities_html_aaa5ec6d56ccbeba718b9e8fc6ec2f7c9"><div class="ttname"><a href="namespacemesos_1_1internal_1_1capabilities.html#aaa5ec6d56ccbeba718b9e8fc6ec2f7c9">mesos::internal::capabilities::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> capabilities.hpp:79</div></div>
 <div class="ttc" id="namespacemesos_1_1v1_1_1resource__provider_html_a1c10bb4a714145a80318f7fe0c833163"><div class="ttname"><a href="namespacemesos_1_1v1_1_1resource__provider.html#a1c10bb4a714145a80318f7fe0c833163">mesos::v1::resource_provider::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;stream, const Call::UpdatePublishResourcesStatus::Status &amp;status)</div><div class="ttdef"><b>Definition:</b> resource_provider.hpp:29</div></div>
 </div><!-- fragment --></div><!-- contents -->


Mime
View raw message