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/11/18 01:21:15 UTC

[4/5] mesos-site git commit: Updated the website built from mesos SHA: 2939c86.

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/67db28b8/content/api/latest/c++/hierarchical_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/hierarchical_8hpp_source.html b/content/api/latest/c++/hierarchical_8hpp_source.html
index aa737aa..f6d2df0 100644
--- a/content/api/latest/c++/hierarchical_8hpp_source.html
+++ b/content/api/latest/c++/hierarchical_8hpp_source.html
@@ -353,326 +353,328 @@
 <div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;</div>
 <div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html">  300</a></span>&#160;  <span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html">Framework</a></div>
 <div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;  {</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a1daa123ca0c6699f0dc5a5941eb664d3">Framework</a>(</div>
+<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a01d3b74fe17c0e15168b053285323a3b">Framework</a>(</div>
 <div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <span class="keyword">const</span> FrameworkInfo&amp; frameworkInfo,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <span class="keyword">const</span> std::set&lt;std::string&gt;&amp; _suppressedRoles);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div>
-<div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a5f21b4205cea2fade829ab3afc82815d">  306</a></span>&#160;    std::set&lt;std::string&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a5f21b4205cea2fade829ab3afc82815d">roles</a>;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;</div>
-<div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a76ba322ea35f552235287e7b8dd38162">  308</a></span>&#160;    std::set&lt;std::string&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a76ba322ea35f552235287e7b8dd38162">suppressedRoles</a>;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;</div>
-<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a0a153a163124e027959b69a4dcf8a660">  310</a></span>&#160;    <a class="code" href="structmesos_1_1internal_1_1protobuf_1_1framework_1_1Capabilities.html">protobuf::framework::Capabilities</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a0a153a163124e027959b69a4dcf8a660">capabilities</a>;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="comment">// Active offer and inverse offer filters for the framework.</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="comment">// Offer filters are tied to the role the filtered resources</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="comment">// were allocated to.</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a56b6fba37d8c466ad48c0e50ab1ce92d">  315</a></span>&#160;    <a class="code" href="classhashmap.html">hashmap&lt;std::string, hashmap&lt;SlaveID, hashset&lt;OfferFilter*&gt;</a>&gt;&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a56b6fba37d8c466ad48c0e50ab1ce92d">offerFilters</a>;</div>
-<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a73ebf40e183c41b2547b4eeb9613df9a">  316</a></span>&#160;    <a class="code" href="classhashmap.html">hashmap&lt;SlaveID, hashset&lt;InverseOfferFilter*&gt;</a>&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a73ebf40e183c41b2547b4eeb9613df9a">inverseOfferFilters</a>;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;  };</div>
+<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <span class="keyword">const</span> std::set&lt;std::string&gt;&amp; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a76ba322ea35f552235287e7b8dd38162">suppressedRoles</a>,</div>
+<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a6525fb30b7121fcae82c1233f13269c8">active</a>);</div>
+<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div>
+<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a5f21b4205cea2fade829ab3afc82815d">  307</a></span>&#160;    std::set&lt;std::string&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a5f21b4205cea2fade829ab3afc82815d">roles</a>;</div>
+<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div>
+<div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a76ba322ea35f552235287e7b8dd38162">  309</a></span>&#160;    std::set&lt;std::string&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a76ba322ea35f552235287e7b8dd38162">suppressedRoles</a>;</div>
+<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;</div>
+<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a0a153a163124e027959b69a4dcf8a660">  311</a></span>&#160;    <a class="code" href="structmesos_1_1internal_1_1protobuf_1_1framework_1_1Capabilities.html">protobuf::framework::Capabilities</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a0a153a163124e027959b69a4dcf8a660">capabilities</a>;</div>
+<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;</div>
+<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="comment">// Active offer and inverse offer filters for the framework.</span></div>
+<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="comment">// Offer filters are tied to the role the filtered resources</span></div>
+<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="comment">// were allocated to.</span></div>
+<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a56b6fba37d8c466ad48c0e50ab1ce92d">  316</a></span>&#160;    <a class="code" href="classhashmap.html">hashmap&lt;std::string, hashmap&lt;SlaveID, hashset&lt;OfferFilter*&gt;</a>&gt;&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a56b6fba37d8c466ad48c0e50ab1ce92d">offerFilters</a>;</div>
+<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a73ebf40e183c41b2547b4eeb9613df9a">  317</a></span>&#160;    <a class="code" href="classhashmap.html">hashmap&lt;SlaveID, hashset&lt;InverseOfferFilter*&gt;</a>&gt; <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a73ebf40e183c41b2547b4eeb9613df9a">inverseOfferFilters</a>;</div>
 <div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;</div>
-<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#aaf6203c570146ea86cbca5af30291d29">  319</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#aaf6203c570146ea86cbca5af30291d29">_event_queue_dispatches</a>()</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;  {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(eventCount&lt;process::DispatchEvent&gt;());</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;  }</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#ad9f069d67ed3e23ddc8a963609de97f4">_resources_total</a>(</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;      <span class="keyword">const</span> std::string&amp; resource);</div>
+<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a6525fb30b7121fcae82c1233f13269c8">  319</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Framework.html#a6525fb30b7121fcae82c1233f13269c8">active</a>;</div>
+<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;  };</div>
+<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;</div>
+<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#aaf6203c570146ea86cbca5af30291d29">  322</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#aaf6203c570146ea86cbca5af30291d29">_event_queue_dispatches</a>()</div>
+<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;  {</div>
+<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(eventCount&lt;process::DispatchEvent&gt;());</div>
+<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;  }</div>
 <div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a652ffc5a1de704b592ecea187b812203">_resources_offered_or_allocated</a>(</div>
+<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#ad9f069d67ed3e23ddc8a963609de97f4">_resources_total</a>(</div>
 <div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;      <span class="keyword">const</span> std::string&amp; resource);</div>
 <div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a42265212d37f7d6d1f073f1b96ca94d0">_quota_allocated</a>(</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;      <span class="keyword">const</span> std::string&amp; role,</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;      <span class="keyword">const</span> std::string&amp; resource);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a967e320b1d5dd56a1dec05dc3aaa58a2">_offer_filters_active</a>(</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;      <span class="keyword">const</span> std::string&amp; role);</div>
+<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a652ffc5a1de704b592ecea187b812203">_resources_offered_or_allocated</a>(</div>
+<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;      <span class="keyword">const</span> std::string&amp; resource);</div>
+<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;</div>
+<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a42265212d37f7d6d1f073f1b96ca94d0">_quota_allocated</a>(</div>
+<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;      <span class="keyword">const</span> std::string&amp; role,</div>
+<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;      <span class="keyword">const</span> std::string&amp; resource);</div>
 <div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;</div>
-<div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a36f47521514de91d837559b835aeda2a">  337</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;FrameworkID, Framework&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a36f47521514de91d837559b835aeda2a">frameworks</a>;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div>
-<div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html">  339</a></span>&#160;  <span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html">Slave</a></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;  {</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    <span class="comment">// Total amount of regular *and* oversubscribed resources.</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#aa1d48cbee5fd1c7d1764b8e37fe4d4e9">  342</a></span>&#160;    <a class="code" href="classmesos_1_1Resources.html">Resources</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#aa1d48cbee5fd1c7d1764b8e37fe4d4e9">total</a>;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <span class="comment">// Regular *and* oversubscribed resources that are allocated.</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    <span class="comment">//</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <span class="comment">// NOTE: We maintain multiple copies of each shared resource allocated</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="comment">// to a slave, where the number of copies represents the number of times</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="comment">// this shared resource has been allocated to (and has not been recovered</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="comment">// from) a specific framework.</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <span class="comment">//</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="comment">// NOTE: We keep track of slave&#39;s allocated resources despite</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="comment">// having that information in sorters. This is because the</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="comment">// information in sorters is not accurate if some framework</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="comment">// hasn&#39;t reregistered. See MESOS-2919 for details.</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a7948483c4892d53a1270348795d58a90">  355</a></span>&#160;    <a class="code" href="classmesos_1_1Resources.html">Resources</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a7948483c4892d53a1270348795d58a90">allocated</a>;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="comment">// We track the total and allocated resources on the slave, the</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    <span class="comment">// available resources are computed as follows:</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="comment">//</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <span class="comment">//   available = total - allocated</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="comment">//</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <span class="comment">// Note that it&#39;s possible for the slave to be over-allocated!</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="comment">// In this case, allocated &gt; total.</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac7bd2807238e975c3dd11578ab827138">  364</a></span>&#160;    <a class="code" href="classmesos_1_1Resources.html">Resources</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac7bd2807238e975c3dd11578ab827138">available</a>()<span class="keyword"> const</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;<span class="keyword">    </span>{</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;      <span class="comment">// In order to subtract from the total,</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;      <span class="comment">// we strip the allocation information.</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;      <a class="code" href="classmesos_1_1Resources.html">Resources</a> allocated_ = <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a7948483c4892d53a1270348795d58a90">allocated</a>;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;      allocated_.<a class="code" href="classmesos_1_1Resources.html#ae37d3b004781eb0f7b8d3676db9c6205">unallocate</a>();</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#aa1d48cbee5fd1c7d1764b8e37fe4d4e9">total</a> - allocated_;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    }</div>
+<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a967e320b1d5dd56a1dec05dc3aaa58a2">_offer_filters_active</a>(</div>
+<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;      <span class="keyword">const</span> std::string&amp; role);</div>
+<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div>
+<div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a36f47521514de91d837559b835aeda2a">  340</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;FrameworkID, Framework&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a36f47521514de91d837559b835aeda2a">frameworks</a>;</div>
+<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div>
+<div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html">  342</a></span>&#160;  <span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html">Slave</a></div>
+<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;  {</div>
+<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <span class="comment">// Total amount of regular *and* oversubscribed resources.</span></div>
+<div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#aa1d48cbee5fd1c7d1764b8e37fe4d4e9">  345</a></span>&#160;    <a class="code" href="classmesos_1_1Resources.html">Resources</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#aa1d48cbee5fd1c7d1764b8e37fe4d4e9">total</a>;</div>
+<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div>
+<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="comment">// Regular *and* oversubscribed resources that are allocated.</span></div>
+<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="comment">//</span></div>
+<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="comment">// NOTE: We maintain multiple copies of each shared resource allocated</span></div>
+<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <span class="comment">// to a slave, where the number of copies represents the number of times</span></div>
+<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="comment">// this shared resource has been allocated to (and has not been recovered</span></div>
+<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="comment">// from) a specific framework.</span></div>
+<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="comment">//</span></div>
+<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="comment">// NOTE: We keep track of slave&#39;s allocated resources despite</span></div>
+<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="comment">// having that information in sorters. This is because the</span></div>
+<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="comment">// information in sorters is not accurate if some framework</span></div>
+<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="comment">// hasn&#39;t reregistered. See MESOS-2919 for details.</span></div>
+<div class="line"><a name="l00358"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a7948483c4892d53a1270348795d58a90">  358</a></span>&#160;    <a class="code" href="classmesos_1_1Resources.html">Resources</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a7948483c4892d53a1270348795d58a90">allocated</a>;</div>
+<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div>
+<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <span class="comment">// We track the total and allocated resources on the slave, the</span></div>
+<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="comment">// available resources are computed as follows:</span></div>
+<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <span class="comment">//</span></div>
+<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="comment">//   available = total - allocated</span></div>
+<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="comment">//</span></div>
+<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    <span class="comment">// Note that it&#39;s possible for the slave to be over-allocated!</span></div>
+<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <span class="comment">// In this case, allocated &gt; total.</span></div>
+<div class="line"><a name="l00367"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac7bd2807238e975c3dd11578ab827138">  367</a></span>&#160;    <a class="code" href="classmesos_1_1Resources.html">Resources</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac7bd2807238e975c3dd11578ab827138">available</a>()<span class="keyword"> const</span></div>
+<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="keyword">    </span>{</div>
+<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;      <span class="comment">// In order to subtract from the total,</span></div>
+<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;      <span class="comment">// we strip the allocation information.</span></div>
+<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;      <a class="code" href="classmesos_1_1Resources.html">Resources</a> allocated_ = <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a7948483c4892d53a1270348795d58a90">allocated</a>;</div>
+<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;      allocated_.<a class="code" href="classmesos_1_1Resources.html#ae37d3b004781eb0f7b8d3676db9c6205">unallocate</a>();</div>
 <div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;</div>
-<div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a8ba5026ba665b3c0f8c52ea3f101c24d">  374</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a8ba5026ba665b3c0f8c52ea3f101c24d">activated</a>;  <span class="comment">// Whether to offer resources.</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div>
-<div class="line"><a name="l00376"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a1505bcc996eca8a04f8c85ef7dc545ef">  376</a></span>&#160;    std::string <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a1505bcc996eca8a04f8c85ef7dc545ef">hostname</a>;</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;</div>
-<div class="line"><a name="l00378"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0171bd4f63839cb3a1b57c68caffae31">  378</a></span>&#160;    <a class="code" href="structmesos_1_1internal_1_1protobuf_1_1slave_1_1Capabilities.html">protobuf::slave::Capabilities</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0171bd4f63839cb3a1b57c68caffae31">capabilities</a>;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;</div>
-<div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0308012e784505c32f6886ce3a0d40ff">  380</a></span>&#160;    <a class="code" href="classOption.html">Option&lt;DomainInfo&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0308012e784505c32f6886ce3a0d40ff">domain</a>;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="comment">// Represents a scheduled unavailability due to maintenance for a specific</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    <span class="comment">// slave, and the responses from frameworks as to whether they will be able</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    <span class="comment">// to gracefully handle this unavailability.</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <span class="comment">//</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="comment">// NOTE: We currently implement maintenance in the allocator to be able to</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="comment">// leverage state and features such as the FrameworkSorter and OfferFilter.</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html">  388</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html">Maintenance</a></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    {</div>
-<div class="line"><a name="l00390"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aaeaa6b9d0d37ab4e3673c6b81418777a">  390</a></span>&#160;      <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aaeaa6b9d0d37ab4e3673c6b81418777a">Maintenance</a>(<span class="keyword">const</span> Unavailability&amp; _unavailability)</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        : <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aa906fa2e646a01c43c4387060c447cd8">unavailability</a>(_unavailability) {}</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;      <span class="comment">// The start time and optional duration of the event.</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aa906fa2e646a01c43c4387060c447cd8">  394</a></span>&#160;      Unavailability <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aa906fa2e646a01c43c4387060c447cd8">unavailability</a>;</div>
+<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#aa1d48cbee5fd1c7d1764b8e37fe4d4e9">total</a> - allocated_;</div>
+<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    }</div>
+<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;</div>
+<div class="line"><a name="l00377"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a8ba5026ba665b3c0f8c52ea3f101c24d">  377</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a8ba5026ba665b3c0f8c52ea3f101c24d">activated</a>;  <span class="comment">// Whether to offer resources.</span></div>
+<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div>
+<div class="line"><a name="l00379"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a1505bcc996eca8a04f8c85ef7dc545ef">  379</a></span>&#160;    std::string <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a1505bcc996eca8a04f8c85ef7dc545ef">hostname</a>;</div>
+<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;</div>
+<div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0171bd4f63839cb3a1b57c68caffae31">  381</a></span>&#160;    <a class="code" href="structmesos_1_1internal_1_1protobuf_1_1slave_1_1Capabilities.html">protobuf::slave::Capabilities</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0171bd4f63839cb3a1b57c68caffae31">capabilities</a>;</div>
+<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;</div>
+<div class="line"><a name="l00383"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0308012e784505c32f6886ce3a0d40ff">  383</a></span>&#160;    <a class="code" href="classOption.html">Option&lt;DomainInfo&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#a0308012e784505c32f6886ce3a0d40ff">domain</a>;</div>
+<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;</div>
+<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <span class="comment">// Represents a scheduled unavailability due to maintenance for a specific</span></div>
+<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="comment">// slave, and the responses from frameworks as to whether they will be able</span></div>
+<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="comment">// to gracefully handle this unavailability.</span></div>
+<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="comment">//</span></div>
+<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="comment">// NOTE: We currently implement maintenance in the allocator to be able to</span></div>
+<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="comment">// leverage state and features such as the FrameworkSorter and OfferFilter.</span></div>
+<div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html">  391</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html">Maintenance</a></div>
+<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    {</div>
+<div class="line"><a name="l00393"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aaeaa6b9d0d37ab4e3673c6b81418777a">  393</a></span>&#160;      <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aaeaa6b9d0d37ab4e3673c6b81418777a">Maintenance</a>(<span class="keyword">const</span> Unavailability&amp; _unavailability)</div>
+<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        : <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aa906fa2e646a01c43c4387060c447cd8">unavailability</a>(_unavailability) {}</div>
 <div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;      <span class="comment">// A mapping of frameworks to the inverse offer status associated with</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;      <span class="comment">// this unavailability.</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;      <span class="comment">//</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;      <span class="comment">// NOTE: We currently lose this information during a master fail over</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;      <span class="comment">// since it is not persisted or replicated. This is ok as the new master&#39;s</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;      <span class="comment">// allocator will send out new inverse offers and re-collect the</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;      <span class="comment">// information. This is similar to all the outstanding offers from an old</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;      <span class="comment">// master being invalidated, and new offers being sent out.</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#ac7374c52156a13e512d65cdb3da092ef">  404</a></span>&#160;      <a class="code" href="classhashmap.html">hashmap&lt;FrameworkID, mesos::allocator::InverseOfferStatus&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#ac7374c52156a13e512d65cdb3da092ef">statuses</a>;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;      <span class="comment">// Represents the &quot;unit of accounting&quot; for maintenance. When a</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;      <span class="comment">// `FrameworkID` is present in the hashset it means an inverse offer has</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;      <span class="comment">// been sent out. When it is not present it means no offer is currently</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;      <span class="comment">// outstanding.</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#a0b9b6570de9c59236995ff57e3f5b75a">  410</a></span>&#160;      <a class="code" href="classhashset.html">hashset&lt;FrameworkID&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#a0b9b6570de9c59236995ff57e3f5b75a">offersOutstanding</a>;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    };</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    <span class="comment">// When the `maintenance` is set the slave is scheduled to be unavailable at</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    <span class="comment">// a given point in time, for an optional duration. This information is used</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    <span class="comment">// to send out `InverseOffers`.</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac14d72766dcc88bb1d02c59fd547279b">  416</a></span>&#160;    <a class="code" href="classOption.html">Option&lt;Maintenance&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac14d72766dcc88bb1d02c59fd547279b">maintenance</a>;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;  };</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;</div>
-<div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#abf75366546bda737ba22d994b6a7fb20">  419</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;SlaveID, Slave&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#abf75366546bda737ba22d994b6a7fb20">slaves</a>;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;  <span class="comment">// A set of agents that are kept as allocation candidates. Events</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;  <span class="comment">// may add or remove candidates to the set. When an allocation is</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;  <span class="comment">// processed, the set of candidates is cleared.</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a8eb326a798f7afef1b82dbf2ea0a51f1">  424</a></span>&#160;  <a class="code" href="classhashset.html">hashset&lt;SlaveID&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a8eb326a798f7afef1b82dbf2ea0a51f1">allocationCandidates</a>;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;  <span class="comment">// Future for the dispatched allocation that becomes</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;  <span class="comment">// ready after the allocation run is complete.</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a2b43be40bc7ad484b83b055d13cf65b4">  428</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;process::Future&lt;Nothing&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a2b43be40bc7ad484b83b055d13cf65b4">allocation</a>;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;  <span class="comment">// We track information about roles that we&#39;re aware of in the system.</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;  <span class="comment">// Specifically, we keep track of the roles when a framework subscribes to</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;  <span class="comment">// the role, and/or when there are resources allocated to the role</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;  <span class="comment">// (e.g. some tasks and/or executors are consuming resources under the role).</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a16c7474e21fd5aa3d219a0e46341038d">  434</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;std::string, hashset&lt;FrameworkID&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a16c7474e21fd5aa3d219a0e46341038d">roles</a>;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;  <span class="comment">// Configured quota for each role, if any. Setting quota for a role</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;  <span class="comment">// changes the order that the role&#39;s frameworks are offered</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;  <span class="comment">// resources. Quota comes before fair share, hence setting quota moves</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;  <span class="comment">// the role&#39;s frameworks towards the front of the allocation queue.</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;  <span class="comment">// NOTE: We currently associate quota with roles, but this may</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;  <span class="comment">// change in the future.</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a367074e000559d67efe3a377657d3a9f">  443</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;std::string, Quota&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a367074e000559d67efe3a377657d3a9f">quotas</a>;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;  <span class="comment">// Slaves to send offers for.</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a65468666990c8079dc0f3e716abb82b8">  446</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;hashset&lt;std::string&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a65468666990c8079dc0f3e716abb82b8">whitelist</a>;</div>
+<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;      <span class="comment">// The start time and optional duration of the event.</span></div>
+<div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aa906fa2e646a01c43c4387060c447cd8">  397</a></span>&#160;      Unavailability <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#aa906fa2e646a01c43c4387060c447cd8">unavailability</a>;</div>
+<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;</div>
+<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;      <span class="comment">// A mapping of frameworks to the inverse offer status associated with</span></div>
+<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;      <span class="comment">// this unavailability.</span></div>
+<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;      <span class="comment">//</span></div>
+<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;      <span class="comment">// NOTE: We currently lose this information during a master fail over</span></div>
+<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;      <span class="comment">// since it is not persisted or replicated. This is ok as the new master&#39;s</span></div>
+<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;      <span class="comment">// allocator will send out new inverse offers and re-collect the</span></div>
+<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;      <span class="comment">// information. This is similar to all the outstanding offers from an old</span></div>
+<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;      <span class="comment">// master being invalidated, and new offers being sent out.</span></div>
+<div class="line"><a name="l00407"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#ac7374c52156a13e512d65cdb3da092ef">  407</a></span>&#160;      <a class="code" href="classhashmap.html">hashmap&lt;FrameworkID, mesos::allocator::InverseOfferStatus&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#ac7374c52156a13e512d65cdb3da092ef">statuses</a>;</div>
+<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;</div>
+<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;      <span class="comment">// Represents the &quot;unit of accounting&quot; for maintenance. When a</span></div>
+<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;      <span class="comment">// `FrameworkID` is present in the hashset it means an inverse offer has</span></div>
+<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;      <span class="comment">// been sent out. When it is not present it means no offer is currently</span></div>
+<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;      <span class="comment">// outstanding.</span></div>
+<div class="line"><a name="l00413"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#a0b9b6570de9c59236995ff57e3f5b75a">  413</a></span>&#160;      <a class="code" href="classhashset.html">hashset&lt;FrameworkID&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave_1_1Maintenance.html#a0b9b6570de9c59236995ff57e3f5b75a">offersOutstanding</a>;</div>
+<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    };</div>
+<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;</div>
+<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    <span class="comment">// When the `maintenance` is set the slave is scheduled to be unavailable at</span></div>
+<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <span class="comment">// a given point in time, for an optional duration. This information is used</span></div>
+<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    <span class="comment">// to send out `InverseOffers`.</span></div>
+<div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac14d72766dcc88bb1d02c59fd547279b">  419</a></span>&#160;    <a class="code" href="classOption.html">Option&lt;Maintenance&gt;</a> <a class="code" href="structmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess_1_1Slave.html#ac14d72766dcc88bb1d02c59fd547279b">maintenance</a>;</div>
+<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;  };</div>
+<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;</div>
+<div class="line"><a name="l00422"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#abf75366546bda737ba22d994b6a7fb20">  422</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;SlaveID, Slave&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#abf75366546bda737ba22d994b6a7fb20">slaves</a>;</div>
+<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;</div>
+<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;  <span class="comment">// A set of agents that are kept as allocation candidates. Events</span></div>
+<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;  <span class="comment">// may add or remove candidates to the set. When an allocation is</span></div>
+<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;  <span class="comment">// processed, the set of candidates is cleared.</span></div>
+<div class="line"><a name="l00427"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a8eb326a798f7afef1b82dbf2ea0a51f1">  427</a></span>&#160;  <a class="code" href="classhashset.html">hashset&lt;SlaveID&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a8eb326a798f7afef1b82dbf2ea0a51f1">allocationCandidates</a>;</div>
+<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;</div>
+<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;  <span class="comment">// Future for the dispatched allocation that becomes</span></div>
+<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;  <span class="comment">// ready after the allocation run is complete.</span></div>
+<div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a2b43be40bc7ad484b83b055d13cf65b4">  431</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;process::Future&lt;Nothing&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a2b43be40bc7ad484b83b055d13cf65b4">allocation</a>;</div>
+<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div>
+<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;  <span class="comment">// We track information about roles that we&#39;re aware of in the system.</span></div>
+<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;  <span class="comment">// Specifically, we keep track of the roles when a framework subscribes to</span></div>
+<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;  <span class="comment">// the role, and/or when there are resources allocated to the role</span></div>
+<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;  <span class="comment">// (e.g. some tasks and/or executors are consuming resources under the role).</span></div>
+<div class="line"><a name="l00437"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a16c7474e21fd5aa3d219a0e46341038d">  437</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;std::string, hashset&lt;FrameworkID&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a16c7474e21fd5aa3d219a0e46341038d">roles</a>;</div>
+<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;</div>
+<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;  <span class="comment">// Configured quota for each role, if any. Setting quota for a role</span></div>
+<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;  <span class="comment">// changes the order that the role&#39;s frameworks are offered</span></div>
+<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;  <span class="comment">// resources. Quota comes before fair share, hence setting quota moves</span></div>
+<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;  <span class="comment">// the role&#39;s frameworks towards the front of the allocation queue.</span></div>
+<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;  <span class="comment">// NOTE: We currently associate quota with roles, but this may</span></div>
+<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;  <span class="comment">// change in the future.</span></div>
+<div class="line"><a name="l00446"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a367074e000559d67efe3a377657d3a9f">  446</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;std::string, Quota&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a367074e000559d67efe3a377657d3a9f">quotas</a>;</div>
 <div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;  <span class="comment">// Resources (by name) that will be excluded from a role&#39;s fair share.</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a650088517da5692657a58ab961376d77">  449</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;std::set&lt;std::string&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a650088517da5692657a58ab961376d77">fairnessExcludeResourceNames</a>;</div>
+<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;  <span class="comment">// Slaves to send offers for.</span></div>
+<div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a65468666990c8079dc0f3e716abb82b8">  449</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;hashset&lt;std::string&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a65468666990c8079dc0f3e716abb82b8">whitelist</a>;</div>
 <div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;  <span class="comment">// Filter GPU resources based on the `GPU_RESOURCES` framework capability.</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a5b569bbf8a0b8a07d3219ae7718828ca">  452</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a5b569bbf8a0b8a07d3219ae7718828ca">filterGpuResources</a>;</div>
+<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;  <span class="comment">// Resources (by name) that will be excluded from a role&#39;s fair share.</span></div>
+<div class="line"><a name="l00452"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a650088517da5692657a58ab961376d77">  452</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;std::set&lt;std::string&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a650088517da5692657a58ab961376d77">fairnessExcludeResourceNames</a>;</div>
 <div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;  <span class="comment">// The master&#39;s domain, if any.</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a64b69bd952f0b6768c115cfbc36a8b87">  455</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;DomainInfo&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a64b69bd952f0b6768c115cfbc36a8b87">domain</a>;</div>
+<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;  <span class="comment">// Filter GPU resources based on the `GPU_RESOURCES` framework capability.</span></div>
+<div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a5b569bbf8a0b8a07d3219ae7718828ca">  455</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a5b569bbf8a0b8a07d3219ae7718828ca">filterGpuResources</a>;</div>
 <div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;  <span class="comment">// There are two stages of allocation. During the first stage resources</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;  <span class="comment">// are allocated only to frameworks in roles with quota set. During the</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;  <span class="comment">// second stage remaining resources that would not be required to satisfy</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;  <span class="comment">// un-allocated quota are then allocated to all frameworks.</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;  <span class="comment">// Each stage comprises two levels of sorting, hence &quot;hierarchical&quot;.</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;  <span class="comment">// Level 1 sorts across roles:</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;  <span class="comment">//   Currently, only the allocated portion of the reserved resources are</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;  <span class="comment">//   accounted for fairness calculation.</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;  <span class="comment">// TODO(mpark): Reserved resources should be accounted for fairness</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;  <span class="comment">// calculation whether they are allocated or not, since they model a long or</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;  <span class="comment">// forever running task. That is, the effect of reserving resources is</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;  <span class="comment">// equivalent to launching a task in that the resources that make up the</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;  <span class="comment">// reservation are not available to other roles as non-revocable.</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;  <span class="comment">// Level 2 sorts across frameworks within a particular role:</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;  <span class="comment">//   Reserved resources at this level are, and should be accounted for</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;  <span class="comment">//   fairness calculation only if they are allocated. This is because</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;  <span class="comment">//   reserved resources are fairly shared across the frameworks in the role.</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;  <span class="comment">// The allocator relies on `Sorter`s to employ a particular sorting</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;  <span class="comment">// algorithm. Each level has its own sorter and hence may have different</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;  <span class="comment">// fairness calculations.</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;  <span class="comment">// NOTE: The hierarchical allocator considers revocable resources as</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;  <span class="comment">// regular resources when doing fairness calculations.</span></div>
+<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;  <span class="comment">// The master&#39;s domain, if any.</span></div>
+<div class="line"><a name="l00458"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a64b69bd952f0b6768c115cfbc36a8b87">  458</a></span>&#160;  <a class="code" href="classOption.html">Option&lt;DomainInfo&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a64b69bd952f0b6768c115cfbc36a8b87">domain</a>;</div>
+<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;</div>
+<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;  <span class="comment">// There are two stages of allocation. During the first stage resources</span></div>
+<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;  <span class="comment">// are allocated only to frameworks in roles with quota set. During the</span></div>
+<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;  <span class="comment">// second stage remaining resources that would not be required to satisfy</span></div>
+<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;  <span class="comment">// un-allocated quota are then allocated to all frameworks.</span></div>
+<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;  <span class="comment">// Each stage comprises two levels of sorting, hence &quot;hierarchical&quot;.</span></div>
+<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;  <span class="comment">// Level 1 sorts across roles:</span></div>
+<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;  <span class="comment">//   Currently, only the allocated portion of the reserved resources are</span></div>
+<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;  <span class="comment">//   accounted for fairness calculation.</span></div>
+<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;  <span class="comment">// TODO(mpark): Reserved resources should be accounted for fairness</span></div>
+<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;  <span class="comment">// calculation whether they are allocated or not, since they model a long or</span></div>
+<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;  <span class="comment">// forever running task. That is, the effect of reserving resources is</span></div>
+<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;  <span class="comment">// equivalent to launching a task in that the resources that make up the</span></div>
+<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;  <span class="comment">// reservation are not available to other roles as non-revocable.</span></div>
+<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;  <span class="comment">// Level 2 sorts across frameworks within a particular role:</span></div>
+<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;  <span class="comment">//   Reserved resources at this level are, and should be accounted for</span></div>
+<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;  <span class="comment">//   fairness calculation only if they are allocated. This is because</span></div>
+<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;  <span class="comment">//   reserved resources are fairly shared across the frameworks in the role.</span></div>
+<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;  <span class="comment">// The allocator relies on `Sorter`s to employ a particular sorting</span></div>
+<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;  <span class="comment">// algorithm. Each level has its own sorter and hence may have different</span></div>
+<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;  <span class="comment">// fairness calculations.</span></div>
 <div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;  <span class="comment">// TODO(vinod): Consider using a different fairness algorithm for</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;  <span class="comment">// revocable resources.</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;  <span class="comment">// A sorter for active roles. This sorter determines the order in which</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;  <span class="comment">// roles are allocated resources during Level 1 of the second stage.</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a890bb44d4f46f708e8df0514036d44ca">  490</a></span>&#160;  <a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;Sorter&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a890bb44d4f46f708e8df0514036d44ca">roleSorter</a>;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;  <span class="comment">// A dedicated sorter for roles for which quota is set. This sorter</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;  <span class="comment">// determines the order in which quota&#39;ed roles are allocated resources</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;  <span class="comment">// during Level 1 of the first stage. Quota&#39;ed roles have resources</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;  <span class="comment">// allocated up to their alloted quota (the first stage) prior to</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;  <span class="comment">// non-quota&#39;ed roles (the second stage).</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;  <span class="comment">// NOTE: A role appears in `quotaRoleSorter` if it has a quota (even if</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;  <span class="comment">// no frameworks are currently registered in that role). In contrast,</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;  <span class="comment">// `roleSorter` only contains entries for roles with one or more</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;  <span class="comment">// registered frameworks.</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;  <span class="comment">//</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;  <span class="comment">// NOTE: We do not include revocable resources in the quota role sorter,</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;  <span class="comment">// because the quota role sorter&#39;s job is to perform fair sharing between</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;  <span class="comment">// the quota roles as it pertains to their level of quota satisfaction.</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;  <span class="comment">// Since revocable resources do not increase a role&#39;s level of satisfaction</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;  <span class="comment">// toward its quota, we choose to exclude them from the quota role sorter.</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#adc8f37c1d8b0394cc23178491d44c2e2">  508</a></span>&#160;  <a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;Sorter&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#adc8f37c1d8b0394cc23178491d44c2e2">quotaRoleSorter</a>;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;  <span class="comment">// A collection of sorters, one per active role. Each sorter determines</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;  <span class="comment">// the order in which frameworks that belong to the same role are allocated</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;  <span class="comment">// resources inside the role&#39;s share. These sorters are used during Level 2</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;  <span class="comment">// for both the first and the second stages.</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a286878cde1e175a044fb6bb934a9b941">  514</a></span>&#160;  <a class="code" href="classhashmap.html">hashmap&lt;std::string, process::Owned&lt;Sorter&gt;</a>&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a286878cde1e175a044fb6bb934a9b941">frameworkSorters</a>;</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;  <span class="comment">// Factory function for framework sorters.</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a4612ef1ebd4f96f80e35a216a79e6a8d">  517</a></span>&#160;  <span class="keyword">const</span> std::function&lt;Sorter*()&gt; <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a4612ef1ebd4f96f80e35a216a79e6a8d">frameworkSorterFactory</a>;</div>
+<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;  <span class="comment">// NOTE: The hierarchical allocator considers revocable resources as</span></div>
+<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;  <span class="comment">// regular resources when doing fairness calculations.</span></div>
+<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;  <span class="comment">// TODO(vinod): Consider using a different fairness algorithm for</span></div>
+<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;  <span class="comment">// revocable resources.</span></div>
+<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;</div>
+<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;  <span class="comment">// A sorter for active roles. This sorter determines the order in which</span></div>
+<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;  <span class="comment">// roles are allocated resources during Level 1 of the second stage.</span></div>
+<div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a890bb44d4f46f708e8df0514036d44ca">  493</a></span>&#160;  <a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;Sorter&gt;</a> <a class="code" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#a890bb44d4f46f708e8df0514036d44ca">roleSorter</a>;</div>
+<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;</div>
+<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;  <span class="comment">// A dedicated sorter for roles for which quota is set. This sorter</span></div>
+<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;  <span class="comment">// determines the order in which quota&#39;ed roles are allocated resources</span></div>
+<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;  <span class="comment">// during Level 1 of the first stage. Quota&#39;ed roles have resources</span></div>
+<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;  <span class="comment">// allocated up to their alloted quota (the first stage) prior to</span></div>
+<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;  <span class="comment">// non-quota&#39;ed roles (the second stage).</span></div>
+<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;  <span class="comment">// NOTE: A role appears in `quotaRoleSorter` if it has a quota (even if</span></div>
+<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;  <span class="comment">// no frameworks are currently registered in that role). In contrast,</span></div>
+<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;  <span class="comment">// `roleSorter` only contains entries for roles with one or more</span></div>
+<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;  <span class="comment">// registered frameworks.</span></div>
+<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;  <span class="comment">//</span></div>
+<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;  <span class="comment">// NOTE: We do not include revocable resources in the quota role sorter,</span></div>
+<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;  <span class="comment">// because the quota role sorter&#39;s job is to perform fair sharing between</span></div>
+<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;  <span class="comment">// the quota roles as it pertains to their level of quota satisfaction.</span></div>
+<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;  <span class="comment">// Since revocable resources do not increase a role&#39;s level of satisfaction</span></div>
+<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;  <span class="comment">// toward its quota, we choose to exclude them from the quota role sorter.</span></div>
+<div class="line"><a name="l00511"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1master_1_1allocator_1_1internal_1_1HierarchicalAllocatorProcess.html#adc8f37c1d8b0394cc23178491d44c2e2"

<TRUNCATED>