You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2017/10/05 15:51:29 UTC

[04/21] mesos-site git commit: Updated the website built from mesos SHA: 46db7e4.

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/74cbbec8/content/api/latest/c++/registrar_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/registrar_8hpp_source.html b/content/api/latest/c++/registrar_8hpp_source.html
deleted file mode 100644
index fb1e41d..0000000
--- a/content/api/latest/c++/registrar_8hpp_source.html
+++ /dev/null
@@ -1,224 +0,0 @@
-<!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.5"/>
-<title>Apache Mesos: src/master/registrar.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 style="padding-left: 0.5em;">
-   <div id="projectname">Apache Mesos
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.5 -->
-  <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_ae1a660fbe587eff2b475b14d217c1ef.html">master</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">registrar.hpp</div>  </div>
-</div><!--header-->
-<div class="contents">
-<a href="registrar_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 __MASTER_REGISTRAR_HPP__</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __MASTER_REGISTRAR_HPP__</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor"></span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="include_2mesos_2mesos_8hpp.html">mesos/mesos.hpp</a>&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="preprocessor">#include &lt;<a class="code" href="include_2mesos_2state_2state_8hpp.html">mesos/state/state.hpp</a>&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="future_8hpp.html">process/future.hpp</a>&gt;</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</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="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2libprocess_2include_2process_2pid_8hpp.html">process/pid.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="hashset_8hpp.html">stout/hashset.hpp</a>&gt;</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="src_2master_2flags_8hpp.html">master/flags.hpp</a>&quot;</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="registry_8hpp.html">master/registry.hpp</a>&quot;</span></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="keyword">namespace </span>mesos {</div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span>internal {</div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">namespace </span>master {</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">   37</span>&#160;<span class="comment">// Forward declaration.</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">class </span>RegistrarProcess;</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;<span class="comment">// Defines an abstraction for operations that can be applied on the</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">// Registry.</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">// TODO(xujyan): Make Operation generic so that we can apply them</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">// against a generic &quot;batch operation applier&quot; abstraction, see TODO</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">// below for more details.</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1Operation.html">   45</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1master_1_1Operation.html">Operation</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1Promise.html">process::Promise</a>&lt;bool&gt;</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="keyword">public</span>:</div>
-<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1Operation.html#ab3d421fa8e9d8849fb37ddaef1965b3a">   48</a></span>&#160;  <a class="code" href="classmesos_1_1internal_1_1master_1_1Operation.html#ab3d421fa8e9d8849fb37ddaef1965b3a">Operation</a>() : success(false) {}</div>
-<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1Operation.html#a51ff2884db36db785c55f0e269a8134d">   49</a></span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1Operation.html#a51ff2884db36db785c55f0e269a8134d">~Operation</a>() {}</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="comment">// Attempts to invoke the operation on the registry object.</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="comment">// Aided by accumulator(s):</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="comment">//   slaveIDs - is the set of registered slaves.</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">// Returns whether the operation mutates &#39;registry&#39;, or an error if</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <span class="comment">// the operation cannot be applied successfully.</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1Operation.html#a579f54e98cc99bf30ed6d1c209fa17c3">   57</a></span>&#160;  <a class="code" href="classTry.html">Try&lt;bool&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1Operation.html#a579f54e98cc99bf30ed6d1c209fa17c3">operator()</a>(Registry* registry, <a class="code" href="classhashset.html">hashset&lt;SlaveID&gt;</a>* slaveIDs)</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  {</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">const</span> <a class="code" href="classTry.html">Try&lt;bool&gt;</a> result = <a class="code" href="classmesos_1_1internal_1_1master_1_1Operation.html#a2c77ce356a4e00b9ef0d8e3d04de7684">perform</a>(registry, slaveIDs);</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    success = !result.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>();</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordflow">return</span> result;</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;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="comment">// Sets the promise based on whether the operation was successful.</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1Operation.html#aa7325c01da3c8fff4d2bf6586a2e55df">   67</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1Operation.html#aa7325c01da3c8fff4d2bf6586a2e55df">set</a>() { <span class="keywordflow">return</span> <a class="code" href="classprocess_1_1Promise.html#a989b8dfa7eb2633de3f0f25ac2b87943">process::Promise&lt;bool&gt;::set</a>(success); }</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keyword">protected</span>:</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classTry.html">Try&lt;bool&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1Operation.html#a2c77ce356a4e00b9ef0d8e3d04de7684">perform</a>(Registry* registry, <a class="code" href="classhashset.html">hashset&lt;SlaveID&gt;</a>* slaveIDs) = 0;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keyword">private</span>:</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keywordtype">bool</span> success;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;};</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">// TODO(xujyan): Add a generic abstraction for applying batches of</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">// operations against State Variables. The Registrar and other</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">// components could leverage this. This abstraction would be</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">// templatized to take the type, along with any accumulators:</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">// template &lt;typename T,</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">//           typename X = None,</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">//           typename Y = None,</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment">//           typename Z = None&gt;</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">// T: the data type that the batch operations can be applied on.</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment">// X, Y, Z: zero to 3 generic accumulators that facilitate the batch</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment">// of operations.</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment">// This allows us to reuse the idea of &quot;doing batches of operations&quot;</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment">// on other potential new state variables (i.e. repair state, offer</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">// reservations, etc).</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1Registrar.html">   91</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html">Registrar</a></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;{</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html#a1cc052cf68db1c3b45b0d981eb7e7264">Registrar</a>(<span class="keyword">const</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1Flags.html">Flags</a>&amp; <a class="code" href="decoder_8hpp.html#abb0829cce9dd20a40ae0d86890ae85c6">flags</a>,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            <a class="code" href="classmesos_1_1state_1_1State.html">mesos::state::State</a>* state,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            <span class="keyword">const</span> <a class="code" href="classOption.html">Option&lt;std::string&gt;</a>&amp; authenticationRealm = <a class="code" href="structNone.html">None</a>());</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html#a9561bce055d5e3bbc8a6a98ebad4d24a">~Registrar</a>();</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <span class="comment">// Recovers the Registry, persisting the new Master information.</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="comment">// The Registrar must be recovered to allow other operations to</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="comment">// proceed.</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  <span class="comment">// TODO(bmahler): Consider a &quot;factory&quot; for constructing the</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="comment">// Registrar, to eliminate the need for passing &#39;MasterInfo&#39;.</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  <span class="comment">// This is required as the Registrar is injected into the Master,</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  <span class="comment">// and therefore MasterInfo is unknown during construction.</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <a class="code" href="classprocess_1_1Future.html">process::Future&lt;Registry&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html#a1c37cadf0171c77ef14569ef014ff0d8">recover</a>(<span class="keyword">const</span> MasterInfo&amp; info);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <span class="comment">// Applies an operation on the Registry.</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="comment">// Returns:</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="comment">//   true if the operation is permitted.</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="comment">//   false if the operation is not permitted.</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  <span class="comment">//   Failure if the operation fails (possibly lost log leadership),</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <span class="comment">//     or recovery failed.</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future&lt;bool&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html#a252e813e721c6848a48759f1b838675f">apply</a>(<a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;Operation&gt;</a> operation);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="comment">// Gets the pid of the underlying process.</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="comment">// Used in tests.</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <a class="code" href="structprocess_1_1PID.html">process::PID&lt;RegistrarProcess&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html#a5462adfb393217f4a55c47c441ebb349">pid</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keyword">private</span>:</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  RegistrarProcess* process;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;};</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;} <span class="comment">// namespace master {</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;} <span class="comment">// namespace internal {</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;} <span class="comment">// namespace mesos {</span></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;<span class="preprocessor">#endif // __MASTER_REGISTRAR_HPP__</span></div>
-<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option&lt; std::string &gt;</a></div></div>
-<div class="ttc" id="classmesos_1_1state_1_1State_html"><div class="ttname"><a href="classmesos_1_1state_1_1State.html">mesos::state::State</a></div><div class="ttdef"><b>Definition:</b> state.hpp:90</div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Registrar_html_a9561bce055d5e3bbc8a6a98ebad4d24a"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Registrar.html#a9561bce055d5e3bbc8a6a98ebad4d24a">mesos::internal::master::Registrar::~Registrar</a></div><div class="ttdeci">virtual ~Registrar()</div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Registrar_html_a252e813e721c6848a48759f1b838675f"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Registrar.html#a252e813e721c6848a48759f1b838675f">mesos::internal::master::Registrar::apply</a></div><div class="ttdeci">virtual process::Future&lt; bool &gt; apply(process::Owned&lt; Operation &gt; operation)</div></div>
-<div class="ttc" id="classprocess_1_1Promise_html_a989b8dfa7eb2633de3f0f25ac2b87943"><div class="ttname"><a href="classprocess_1_1Promise.html#a989b8dfa7eb2633de3f0f25ac2b87943">process::Promise::set</a></div><div class="ttdeci">bool set(const T &amp;_t)</div><div class="ttdef"><b>Definition:</b> future.hpp:700</div></div>
-<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div>
-<div class="ttc" id="classhashset_html"><div class="ttname"><a href="classhashset.html">hashset&lt; SlaveID &gt;</a></div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Operation_html_a579f54e98cc99bf30ed6d1c209fa17c3"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Operation.html#a579f54e98cc99bf30ed6d1c209fa17c3">mesos::internal::master::Operation::operator()</a></div><div class="ttdeci">Try&lt; bool &gt; operator()(Registry *registry, hashset&lt; SlaveID &gt; *slaveIDs)</div><div class="ttdef"><b>Definition:</b> registrar.hpp:57</div></div>
-<div class="ttc" id="include_2mesos_2mesos_8hpp_html"><div class="ttname"><a href="include_2mesos_2mesos_8hpp.html">mesos.hpp</a></div></div>
-<div class="ttc" id="include_2mesos_2state_2state_8hpp_html"><div class="ttname"><a href="include_2mesos_2state_2state_8hpp.html">state.hpp</a></div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Operation_html_ab3d421fa8e9d8849fb37ddaef1965b3a"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Operation.html#ab3d421fa8e9d8849fb37ddaef1965b3a">mesos::internal::master::Operation::Operation</a></div><div class="ttdeci">Operation()</div><div class="ttdef"><b>Definition:</b> registrar.hpp:48</div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Registrar_html_a5462adfb393217f4a55c47c441ebb349"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Registrar.html#a5462adfb393217f4a55c47c441ebb349">mesos::internal::master::Registrar::pid</a></div><div class="ttdeci">process::PID&lt; RegistrarProcess &gt; pid() const </div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Flags_html"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Flags.html">mesos::internal::master::Flags</a></div><div class="ttdef"><b>Definition:</b> flags.hpp:42</div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Registrar_html"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Registrar.html">mesos::internal::master::Registrar</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:91</div></div>
-<div class="ttc" id="src_2master_2flags_8hpp_html"><div class="ttname"><a href="src_2master_2flags_8hpp.html">flags.hpp</a></div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Operation_html_a51ff2884db36db785c55f0e269a8134d"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Operation.html#a51ff2884db36db785c55f0e269a8134d">mesos::internal::master::Operation::~Operation</a></div><div class="ttdeci">virtual ~Operation()</div><div class="ttdef"><b>Definition:</b> registrar.hpp:49</div></div>
-<div class="ttc" id="classprocess_1_1Promise_html"><div class="ttname"><a href="classprocess_1_1Promise.html">process::Promise</a></div><div class="ttdef"><b>Definition:</b> future.hpp:72</div></div>
-<div class="ttc" id="3rdparty_2libprocess_2include_2process_2pid_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2pid_8hpp.html">pid.hpp</a></div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Registrar_html_a1cc052cf68db1c3b45b0d981eb7e7264"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Registrar.html#a1cc052cf68db1c3b45b0d981eb7e7264">mesos::internal::master::Registrar::Registrar</a></div><div class="ttdeci">Registrar(const Flags &amp;flags, mesos::state::State *state, const Option&lt; std::string &gt; &amp;authenticationRealm=None())</div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Operation_html_aa7325c01da3c8fff4d2bf6586a2e55df"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Operation.html#aa7325c01da3c8fff4d2bf6586a2e55df">mesos::internal::master::Operation::set</a></div><div class="ttdeci">bool set()</div><div class="ttdef"><b>Definition:</b> registrar.hpp:67</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="structprocess_1_1PID_html"><div class="ttname"><a href="structprocess_1_1PID.html">process::PID</a></div><div class="ttdoc">A &amp;quot;process identifier&amp;quot; used to uniquely identify a process when dispatching messages. </div><div class="ttdef"><b>Definition:</b> pid.hpp:279</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="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="hashset_8hpp_html"><div class="ttname"><a href="hashset_8hpp.html">hashset.hpp</a></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="classmesos_1_1internal_1_1master_1_1Operation_html"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Operation.html">mesos::internal::master::Operation</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:45</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="classmesos_1_1internal_1_1master_1_1Registrar_html_a1c37cadf0171c77ef14569ef014ff0d8"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Registrar.html#a1c37cadf0171c77ef14569ef014ff0d8">mesos::internal::master::Registrar::recover</a></div><div class="ttdeci">process::Future&lt; Registry &gt; recover(const MasterInfo &amp;info)</div></div>
-<div class="ttc" id="registry_8hpp_html"><div class="ttname"><a href="registry_8hpp.html">registry.hpp</a></div></div>
-<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Operation_html_a2c77ce356a4e00b9ef0d8e3d04de7684"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Operation.html#a2c77ce356a4e00b9ef0d8e3d04de7684">mesos::internal::master::Operation::perform</a></div><div class="ttdeci">virtual Try&lt; bool &gt; perform(Registry *registry, hashset&lt; SlaveID &gt; *slaveIDs)=0</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:56</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.5
-</small></address>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/74cbbec8/content/api/latest/c++/registry_8hpp.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/registry_8hpp.html b/content/api/latest/c++/registry_8hpp.html
deleted file mode 100644
index 311c277..0000000
--- a/content/api/latest/c++/registry_8hpp.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!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.5"/>
-<title>Apache Mesos: src/master/registry.hpp File Reference</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 style="padding-left: 0.5em;">
-   <div id="projectname">Apache Mesos
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.5 -->
-  <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_ae1a660fbe587eff2b475b14d217c1ef.html">master</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">registry.hpp File Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="textblock"><code>#include &quot;master/registry.pb.h&quot;</code><br/>
-</div>
-<p><a href="registry_8hpp_source.html">Go to the source code of this file.</a></p>
-</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.5
-</small></address>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/74cbbec8/content/api/latest/c++/registry_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/registry_8hpp_source.html b/content/api/latest/c++/registry_8hpp_source.html
deleted file mode 100644
index 039e6c1..0000000
--- a/content/api/latest/c++/registry_8hpp_source.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<!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.5"/>
-<title>Apache Mesos: src/master/registry.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 style="padding-left: 0.5em;">
-   <div id="projectname">Apache Mesos
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.5 -->
-  <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_ae1a660fbe587eff2b475b14d217c1ef.html">master</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">registry.hpp</div>  </div>
-</div><!--header-->
-<div class="contents">
-<a href="registry_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 __MASTER_REGISTRY_HPP__</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __MASTER_REGISTRY_HPP__</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor"></span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;master/registry.pb.h&quot;</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="preprocessor">#endif // __MASTER_REGISTRY_HPP__</span></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.5
-</small></address>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/74cbbec8/content/api/latest/c++/resource__provider_2registrar_8hpp.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/resource__provider_2registrar_8hpp.html b/content/api/latest/c++/resource__provider_2registrar_8hpp.html
new file mode 100644
index 0000000..3f56cfb
--- /dev/null
+++ b/content/api/latest/c++/resource__provider_2registrar_8hpp.html
@@ -0,0 +1,99 @@
+<!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.5"/>
+<title>Apache Mesos: src/resource_provider/registrar.hpp File Reference</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 style="padding-left: 0.5em;">
+   <div id="projectname">Apache Mesos
+   </div>
+  </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.5 -->
+  <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>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="summary">
+<a href="#nested-classes">Classes</a> &#124;
+<a href="#namespaces">Namespaces</a>  </div>
+  <div class="headertitle">
+<div class="title">registrar.hpp File Reference</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock"><code>#include &lt;memory&gt;</code><br/>
+<code>#include &lt;<a class="el" href="future_8hpp_source.html">process/future.hpp</a>&gt;</code><br/>
+<code>#include &lt;<a class="el" href="owned_8hpp_source.html">process/owned.hpp</a>&gt;</code><br/>
+<code>#include &lt;<a class="el" href="nothing_8hpp_source.html">stout/nothing.hpp</a>&gt;</code><br/>
+<code>#include &lt;<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>&gt;</code><br/>
+<code>#include &quot;<a class="el" href="master_2registrar_8hpp_source.html">master/registrar.hpp</a>&quot;</code><br/>
+<code>#include &quot;<a class="el" href="resource__provider_2registry_8hpp_source.html">resource_provider/registry.hpp</a>&quot;</code><br/>
+<code>#include &quot;<a class="el" href="src_2slave_2flags_8hpp_source.html">slave/flags.hpp</a>&quot;</code><br/>
+</div>
+<p><a href="resource__provider_2registrar_8hpp_source.html">Go to the source code of this file.</a></p>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
+Classes</h2></td></tr>
+<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmesos_1_1resource__provider_1_1Registrar.html">mesos::resource_provider::Registrar</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html">mesos::resource_provider::Registrar::Operation</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmesos_1_1resource__provider_1_1AdmitResourceProvider.html">mesos::resource_provider::AdmitResourceProvider</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmesos_1_1resource__provider_1_1RemoveResourceProvider.html">mesos::resource_provider::RemoveResourceProvider</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html">mesos::resource_provider::AgentRegistrar</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html">mesos::resource_provider::MasterRegistrar</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
+Namespaces</h2></td></tr>
+<tr class="memitem:namespacemesos"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemesos.html">mesos</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:namespacemesos_1_1resource__provider"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemesos_1_1resource__provider.html">mesos::resource_provider</a></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+</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.5
+</small></address>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/74cbbec8/content/api/latest/c++/resource__provider_2registrar_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/resource__provider_2registrar_8hpp_source.html b/content/api/latest/c++/resource__provider_2registrar_8hpp_source.html
new file mode 100644
index 0000000..abef736
--- /dev/null
+++ b/content/api/latest/c++/resource__provider_2registrar_8hpp_source.html
@@ -0,0 +1,251 @@
+<!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.5"/>
+<title>Apache Mesos: src/resource_provider/registrar.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 style="padding-left: 0.5em;">
+   <div id="projectname">Apache Mesos
+   </div>
+  </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.5 -->
+  <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>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">registrar.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<a href="resource__provider_2registrar_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 __RESOURCE_PROVIDER_REGISTRAR_HPP__</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __RESOURCE_PROVIDER_REGISTRAR_HPP__</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;memory&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="preprocessor">#include &lt;<a class="code" href="future_8hpp.html">process/future.hpp</a>&gt;</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno">   23</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="l00024"></a><span class="lineno">   24</span>&#160;</div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>&gt;</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="try_8hpp.html">stout/try.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 &quot;<a class="code" href="master_2registrar_8hpp.html">master/registrar.hpp</a>&quot;</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="resource__provider_2registry_8hpp.html">resource_provider/registry.hpp</a>&quot;</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 &quot;<a class="code" href="src_2slave_2flags_8hpp.html">slave/flags.hpp</a>&quot;</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;</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">namespace </span>mesos {</div>
+<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="namespacemesos_1_1resource__provider.html">   36</a></span>&#160;<span class="keyword">namespace </span>resource_provider {</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"><a class="line" href="classmesos_1_1resource__provider_1_1Registrar.html">   38</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html">Registrar</a></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;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="comment">// Defines an abstraction for operations that can be applied on the</span></div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="comment">// Registry.</span></div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  <span class="comment">// TODO(xujyan): Make Operation generic so that we can apply them</span></div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  <span class="comment">// against a generic &quot;batch operation applier&quot; abstraction, see TODO</span></div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  <span class="comment">// in master/registrar.hpp for more details.</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html">   46</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html">Operation</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1Promise.html">process::Promise</a>&lt;bool&gt;</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="keyword">public</span>:</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#acf27c5181745f5c8f7dd8d913a0cb347">~Operation</a>() = <span class="keywordflow">default</span>;</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="comment">// Attempts to invoke the operation on the registry object.</span></div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="comment">//</span></div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">// Returns whether the operation mutates &#39;registry&#39;, or an error if</span></div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="comment">// the operation cannot be applied successfully.</span></div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="classTry.html">Try&lt;bool&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#abda17f5ffaf3663da9da1eaad5060e14">operator()</a>(registry::Registry* registry);</div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="comment">// Sets the promise based on whether the operation was successful.</span></div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#a9a33d37502b566caf2d93333c7b2030b">set</a>();</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classTry.html">Try&lt;bool&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#a835a153796f9091a048ad7cf4ab5836c">perform</a>(registry::Registry* registry) = 0;</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">bool</span> success = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  };</div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="comment">// Create a registry on top of a master&#39;s persistent state.</span></div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <span class="keyword">static</span> <a class="code" href="classTry.html">Try&lt;process::Owned&lt;Registrar&gt;</a>&gt; <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html#a60be12955c38ef05ade8e14834ca2629">create</a>(</div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;      <a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html">mesos::internal::master::Registrar</a>* registrar);</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="comment">// Create a registry on top of an agent&#39;s persistent state.</span></div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="keyword">static</span> <a class="code" href="classTry.html">Try&lt;process::Owned&lt;Registrar&gt;</a>&gt; <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html#a60be12955c38ef05ade8e14834ca2629">create</a>(</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      <span class="keyword">const</span> <a class="code" href="classmesos_1_1internal_1_1slave_1_1Flags.html">mesos::internal::slave::Flags</a>&amp; slaveFlags,</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      <span class="keyword">const</span> SlaveID&amp; slaveId);</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html#acbce2a2ecd5d4f4d9157e482dc40742c">~Registrar</a>() = <span class="keywordflow">default</span>;</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future&lt;Nothing&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html#afc3474006034095fd80af2bfff5da76b">recover</a>() = 0;</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future&lt;bool&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html#aaab7749c63ecb420293a0684180b1047">apply</a>(<a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;Operation&gt;</a> operation) = 0;</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;};</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
+<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classmesos_1_1resource__provider_1_1AdmitResourceProvider.html">   83</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1resource__provider_1_1AdmitResourceProvider.html">AdmitResourceProvider</a> : <span class="keyword">public</span> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html">Registrar::Operation</a></div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;{</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classmesos_1_1resource__provider_1_1AdmitResourceProvider.html#ab0fee9903f173d4f111aae10872c18f9">AdmitResourceProvider</a>(<span class="keyword">const</span> ResourceProviderID&amp; <span class="keywordtype">id</span>);</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <a class="code" href="classTry.html">Try&lt;bool&gt;</a> perform(registry::Registry* registry) <span class="keyword">override</span>;</div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  ResourceProviderID id;</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;};</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
+<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmesos_1_1resource__provider_1_1RemoveResourceProvider.html">   95</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1resource__provider_1_1RemoveResourceProvider.html">RemoveResourceProvider</a> : <span class="keyword">public</span> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html">Registrar::Operation</a></div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classmesos_1_1resource__provider_1_1RemoveResourceProvider.html#a6a9b698dd965fd875871e088d656b9b2">RemoveResourceProvider</a>(<span class="keyword">const</span> ResourceProviderID&amp; <span class="keywordtype">id</span>);</div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <a class="code" href="classTry.html">Try&lt;bool&gt;</a> perform(registry::Registry* registry) <span class="keyword">override</span>;</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  ResourceProviderID id;</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;};</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keyword">class </span>AgentRegistrarProcess;</div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
+<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html">  110</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html">AgentRegistrar</a> : <span class="keyword">public</span> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html">Registrar</a></div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;{</div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <a class="code" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#a0624f8b9348b872068388bce72623f88">AgentRegistrar</a>(</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;      <span class="keyword">const</span> <a class="code" href="classmesos_1_1internal_1_1slave_1_1Flags.html">mesos::internal::slave::Flags</a>&amp; slaveFlags,</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;      <span class="keyword">const</span> SlaveID&amp; slaveId);</div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <a class="code" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#a04574b709a09b4dd845b7e1adf831ab5">~AgentRegistrar</a>() <span class="keyword">override</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="code" href="classprocess_1_1Future.html">process::Future&lt;Nothing&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#aec28c396994b868a9aa75917920ba96d">recover</a>() <span class="keyword">override</span>;</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <a class="code" href="classprocess_1_1Future.html">process::Future&lt;bool&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#a3b261428d1a06d7bfcfa5951888fbe1f">apply</a>(<a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;Operation&gt;</a> operation) <span class="keyword">override</span>;</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  std::unique_ptr&lt;AgentRegistrarProcess&gt; process;</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;</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;<span class="keyword">class </span>MasterRegistrarProcess;</div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
+<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html">  131</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html">MasterRegistrar</a> : <span class="keyword">public</span> <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html">Registrar</a></div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;{</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a5ee4a29adc917364d2ed588eb9af0e0e">MasterRegistrar</a>(<a class="code" href="classmesos_1_1internal_1_1master_1_1Registrar.html">mesos::internal::master::Registrar</a>* <a class="code" href="classmesos_1_1resource__provider_1_1Registrar.html">Registrar</a>);</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
+<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  <a class="code" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a7f98df5138becf8723ad474efafe58a1">~MasterRegistrar</a>() <span class="keyword">override</span>;</div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  <span class="comment">// This registrar performs no recovery; instead to recover</span></div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <span class="comment">// the underlying master registrar needs to be recovered.</span></div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  <a class="code" href="classprocess_1_1Future.html">process::Future&lt;Nothing&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a2979254b3ceb7822ca78ad18c0b829f4">recover</a>() <span class="keyword">override</span>;</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;  <a class="code" href="classprocess_1_1Future.html">process::Future&lt;bool&gt;</a> <a class="code" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a150589689cc428be01789de2c737f7fe">apply</a>(<a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;Operation&gt;</a> operation) <span class="keyword">override</span>;</div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
+<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  std::unique_ptr&lt;MasterRegistrarProcess&gt; process;</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;};</div>
+<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
+<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;} <span class="comment">// namespace resource_provider {</span></div>
+<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;} <span class="comment">// namespace mesos {</span></div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#endif // __RESOURCE_PROVIDER_REGISTRAR_HPP__</span></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1MasterRegistrar_html_a7f98df5138becf8723ad474efafe58a1"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a7f98df5138becf8723ad474efafe58a1">mesos::resource_provider::MasterRegistrar::~MasterRegistrar</a></div><div class="ttdeci">~MasterRegistrar() override</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1AgentRegistrar_html_aec28c396994b868a9aa75917920ba96d"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#aec28c396994b868a9aa75917920ba96d">mesos::resource_provider::AgentRegistrar::recover</a></div><div class="ttdeci">process::Future&lt; Nothing &gt; recover() override</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1RemoveResourceProvider_html"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1RemoveResourceProvider.html">mesos::resource_provider::RemoveResourceProvider</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:95</div></div>
+<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_html_acbce2a2ecd5d4f4d9157e482dc40742c"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar.html#acbce2a2ecd5d4f4d9157e482dc40742c">mesos::resource_provider::Registrar::~Registrar</a></div><div class="ttdeci">virtual ~Registrar()=default</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1MasterRegistrar_html_a2979254b3ceb7822ca78ad18c0b829f4"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a2979254b3ceb7822ca78ad18c0b829f4">mesos::resource_provider::MasterRegistrar::recover</a></div><div class="ttdeci">process::Future&lt; Nothing &gt; recover() override</div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1master_1_1Registrar_html"><div class="ttname"><a href="classmesos_1_1internal_1_1master_1_1Registrar.html">mesos::internal::master::Registrar</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:91</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1AdmitResourceProvider_html_ab0fee9903f173d4f111aae10872c18f9"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1AdmitResourceProvider.html#ab0fee9903f173d4f111aae10872c18f9">mesos::resource_provider::AdmitResourceProvider::AdmitResourceProvider</a></div><div class="ttdeci">AdmitResourceProvider(const ResourceProviderID &amp;id)</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_1_1Operation_html_abda17f5ffaf3663da9da1eaad5060e14"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#abda17f5ffaf3663da9da1eaad5060e14">mesos::resource_provider::Registrar::Operation::operator()</a></div><div class="ttdeci">Try&lt; bool &gt; operator()(registry::Registry *registry)</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_html_afc3474006034095fd80af2bfff5da76b"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar.html#afc3474006034095fd80af2bfff5da76b">mesos::resource_provider::Registrar::recover</a></div><div class="ttdeci">virtual process::Future&lt; Nothing &gt; recover()=0</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_1_1Operation_html_acf27c5181745f5c8f7dd8d913a0cb347"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#acf27c5181745f5c8f7dd8d913a0cb347">mesos::resource_provider::Registrar::Operation::~Operation</a></div><div class="ttdeci">virtual ~Operation()=default</div></div>
+<div class="ttc" id="master_2registrar_8hpp_html"><div class="ttname"><a href="master_2registrar_8hpp.html">registrar.hpp</a></div></div>
+<div class="ttc" id="classmesos_1_1internal_1_1slave_1_1Flags_html"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1Flags.html">mesos::internal::slave::Flags</a></div><div class="ttdef"><b>Definition:</b> flags.hpp:39</div></div>
+<div class="ttc" id="resource__provider_2registry_8hpp_html"><div class="ttname"><a href="resource__provider_2registry_8hpp.html">registry.hpp</a></div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1RemoveResourceProvider_html_a6a9b698dd965fd875871e088d656b9b2"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1RemoveResourceProvider.html#a6a9b698dd965fd875871e088d656b9b2">mesos::resource_provider::RemoveResourceProvider::RemoveResourceProvider</a></div><div class="ttdeci">RemoveResourceProvider(const ResourceProviderID &amp;id)</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_html_a60be12955c38ef05ade8e14834ca2629"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar.html#a60be12955c38ef05ade8e14834ca2629">mesos::resource_provider::Registrar::create</a></div><div class="ttdeci">static Try&lt; process::Owned&lt; Registrar &gt; &gt; create(mesos::internal::master::Registrar *registrar)</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_1_1Operation_html_a9a33d37502b566caf2d93333c7b2030b"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#a9a33d37502b566caf2d93333c7b2030b">mesos::resource_provider::Registrar::Operation::set</a></div><div class="ttdeci">bool set()</div></div>
+<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_1_1Operation_html_a835a153796f9091a048ad7cf4ab5836c"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html#a835a153796f9091a048ad7cf4ab5836c">mesos::resource_provider::Registrar::Operation::perform</a></div><div class="ttdeci">virtual Try&lt; bool &gt; perform(registry::Registry *registry)=0</div></div>
+<div class="ttc" id="classprocess_1_1Promise_html"><div class="ttname"><a href="classprocess_1_1Promise.html">process::Promise</a></div><div class="ttdef"><b>Definition:</b> future.hpp:72</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_html"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar.html">mesos::resource_provider::Registrar</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:38</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1AgentRegistrar_html"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1AgentRegistrar.html">mesos::resource_provider::AgentRegistrar</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:110</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1Registrar_1_1Operation_html"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html">mesos::resource_provider::Registrar::Operation</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:46</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1MasterRegistrar_html_a5ee4a29adc917364d2ed588eb9af0e0e"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a5ee4a29adc917364d2ed588eb9af0e0e">mesos::resource_provider::MasterRegistrar::MasterRegistrar</a></div><div class="ttdeci">MasterRegistrar(mesos::internal::master::Registrar *Registrar)</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1MasterRegistrar_html"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1MasterRegistrar.html">mesos::resource_provider::MasterRegistrar</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:131</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="classmesos_1_1resource__provider_1_1AgentRegistrar_html_a04574b709a09b4dd845b7e1adf831ab5"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#a04574b709a09b4dd845b7e1adf831ab5">mesos::resource_provider::AgentRegistrar::~AgentRegistrar</a></div><div class="ttdeci">~AgentRegistrar() override</div></div>
+<div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1AgentRegistrar_html_a0624f8b9348b872068388bce72623f88"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#a0624f8b9348b872068388bce72623f88">mesos::resource_provider::AgentRegistrar::AgentRegistrar</a></div><div class="ttdeci">AgentRegistrar(const mesos::internal::slave::Flags &amp;slaveFlags, const SlaveID &amp;slaveId)</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1AdmitResourceProvider_html"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1AdmitResourceProvider.html">mesos::resource_provider::AdmitResourceProvider</a></div><div class="ttdef"><b>Definition:</b> registrar.hpp:83</div></div>
+<div class="ttc" id="src_2slave_2flags_8hpp_html"><div class="ttname"><a href="src_2slave_2flags_8hpp.html">flags.hpp</a></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="classmesos_1_1resource__provider_1_1MasterRegistrar_html_a150589689cc428be01789de2c737f7fe"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1MasterRegistrar.html#a150589689cc428be01789de2c737f7fe">mesos::resource_provider::MasterRegistrar::apply</a></div><div class="ttdeci">process::Future&lt; bool &gt; apply(process::Owned&lt; Operation &gt; operation) override</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="classmesos_1_1resource__provider_1_1Registrar_html_aaab7749c63ecb420293a0684180b1047"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1Registrar.html#aaab7749c63ecb420293a0684180b1047">mesos::resource_provider::Registrar::apply</a></div><div class="ttdeci">virtual process::Future&lt; bool &gt; apply(process::Owned&lt; Operation &gt; operation)=0</div></div>
+<div class="ttc" id="classmesos_1_1resource__provider_1_1AgentRegistrar_html_a3b261428d1a06d7bfcfa5951888fbe1f"><div class="ttname"><a href="classmesos_1_1resource__provider_1_1AgentRegistrar.html#a3b261428d1a06d7bfcfa5951888fbe1f">mesos::resource_provider::AgentRegistrar::apply</a></div><div class="ttdeci">process::Future&lt; bool &gt; apply(process::Owned&lt; Operation &gt; operation) override</div></div>
+<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future&lt; Nothing &gt;</a></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.5
+</small></address>
+</body>
+</html>