| <!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/sched/constants.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 Page</span></a></li> |
| <li><a href="pages.html"><span>Related 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 List</span></a></li> |
| <li><a href="globals.html"><span>File 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_95e7e37fdd08ec500cc8c986cc823cf5.html">sched</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"> |
| <div class="title">constants.hpp</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="src_2sched_2constants_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> <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> <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> <span class="comment">// distributed with this work for additional information</span></div> |
| <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <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> <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> <span class="comment">// "License"); you may not use this file except in compliance</span></div> |
| <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <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> <span class="comment">//</span></div> |
| <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <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> <span class="comment">//</span></div> |
| <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <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> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> |
| <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <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> <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> <span class="comment">// limitations under the License.</span></div> |
| <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> |
| <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef __SCHED_CONSTANTS_HPP__</span></div> |
| <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span><span class="preprocessor">#define __SCHED_CONSTANTS_HPP__</span></div> |
| <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span></div> |
| <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="duration_8hpp.html">stout/duration.hpp</a>></span></div> |
| <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> |
| <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">namespace </span>mesos {</div> |
| <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span>internal {</div> |
| <div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1scheduler.html"> 24</a></span> <span class="keyword">namespace </span>scheduler {</div> |
| <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> |
| <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// Default backoff interval used by the scheduler driver to wait</span></div> |
| <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// before registration.</span></div> |
| <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">//</span></div> |
| <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// NOTE: The default backoff factor for the scheduler (2s) is</span></div> |
| <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// different from the slave (1s) because the scheduler driver doesn't</span></div> |
| <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">// do an initial backoff for the very first attempt unlike the slave.</span></div> |
| <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">//</span></div> |
| <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// TODO(vinod): Once we fix the scheduler driver to do initial backoff</span></div> |
| <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// we can change the default to 1s.</span></div> |
| <div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1scheduler.html#ac882a9ac40973b4012f4927f39963497"> 35</a></span> constexpr <a class="code" href="classDuration.html">Duration</a> <a class="code" href="namespacemesos_1_1internal_1_1scheduler.html#ac882a9ac40973b4012f4927f39963497">DEFAULT_REGISTRATION_BACKOFF_FACTOR</a> = <a class="code" href="classSeconds.html">Seconds</a>(2);</div> |
| <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> |
| <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// The maximum interval the scheduler driver waits before retrying</span></div> |
| <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">// registration.</span></div> |
| <div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1scheduler.html#ad923027b68dc14e19372c8f1f6dd7c71"> 39</a></span> constexpr <a class="code" href="classDuration.html">Duration</a> <a class="code" href="namespacemesos_1_1internal_1_1scheduler.html#ad923027b68dc14e19372c8f1f6dd7c71">REGISTRATION_RETRY_INTERVAL_MAX</a> = <a class="code" href="classMinutes.html">Minutes</a>(1);</div> |
| <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> |
| <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">// The maximum interval the scheduler driver waits before retrying</span></div> |
| <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// authentication.</span></div> |
| <div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1scheduler.html#a4e582d9c51eef60e7349c9183b257e41"> 43</a></span> constexpr <a class="code" href="classDuration.html">Duration</a> <a class="code" href="namespacemesos_1_1internal_1_1scheduler.html#a4e582d9c51eef60e7349c9183b257e41">AUTHENTICATION_RETRY_INTERVAL_MAX</a> = <a class="code" href="classMinutes.html">Minutes</a>(1);</div> |
| <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> |
| <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">// Default backoff interval used by the scheduler to wait after failed</span></div> |
| <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// authentication.</span></div> |
| <div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1scheduler.html#a1e4f1584313a24e26460deed192cc1e6"> 47</a></span> constexpr <a class="code" href="classDuration.html">Duration</a> <a class="code" href="namespacemesos_1_1internal_1_1scheduler.html#a1e4f1584313a24e26460deed192cc1e6">DEFAULT_AUTHENTICATION_BACKOFF_FACTOR</a> = <a class="code" href="classSeconds.html">Seconds</a>(1);</div> |
| <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> |
| <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// Name of the default, CRAM-MD5 authenticatee.</span></div> |
| <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1scheduler.html#ae2a924e0d73699c82db6098d0833a117"> 50</a></span> constexpr <span class="keywordtype">char</span> <a class="code" href="namespacemesos_1_1internal_1_1scheduler.html#ae2a924e0d73699c82db6098d0833a117">DEFAULT_AUTHENTICATEE</a>[] = <span class="stringliteral">"crammd5"</span>;</div> |
| <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div> |
| <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// Default value for `--authentication_timeout`.</span></div> |
| <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1scheduler.html#ae97c91005fca537afdf741162d6dcc6d"> 53</a></span> constexpr <a class="code" href="classDuration.html">Duration</a> <a class="code" href="namespacemesos_1_1internal_1_1scheduler.html#ae97c91005fca537afdf741162d6dcc6d">DEFAULT_AUTHENTICATION_TIMEOUT</a> = <a class="code" href="classSeconds.html">Seconds</a>(5);</div> |
| <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> |
| <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> } <span class="comment">// namespace scheduler {</span></div> |
| <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> } <span class="comment">// namespace internal {</span></div> |
| <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> } <span class="comment">// namespace mesos {</span></div> |
| <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div> |
| <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#endif // __SCHED_CONSTANTS_HPP__</span></div> |
| <div class="ttc" id="namespacemesos_1_1internal_1_1scheduler_html_ae97c91005fca537afdf741162d6dcc6d"><div class="ttname"><a href="namespacemesos_1_1internal_1_1scheduler.html#ae97c91005fca537afdf741162d6dcc6d">mesos::internal::scheduler::DEFAULT_AUTHENTICATION_TIMEOUT</a></div><div class="ttdeci">constexpr Duration DEFAULT_AUTHENTICATION_TIMEOUT</div><div class="ttdef"><b>Definition:</b> constants.hpp:53</div></div> |
| <div class="ttc" id="namespacemesos_1_1internal_1_1scheduler_html_ae2a924e0d73699c82db6098d0833a117"><div class="ttname"><a href="namespacemesos_1_1internal_1_1scheduler.html#ae2a924e0d73699c82db6098d0833a117">mesos::internal::scheduler::DEFAULT_AUTHENTICATEE</a></div><div class="ttdeci">constexpr char DEFAULT_AUTHENTICATEE[]</div><div class="ttdef"><b>Definition:</b> constants.hpp:50</div></div> |
| <div class="ttc" id="classDuration_html"><div class="ttname"><a href="classDuration.html">Duration</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:32</div></div> |
| <div class="ttc" id="namespacemesos_1_1internal_1_1scheduler_html_a4e582d9c51eef60e7349c9183b257e41"><div class="ttname"><a href="namespacemesos_1_1internal_1_1scheduler.html#a4e582d9c51eef60e7349c9183b257e41">mesos::internal::scheduler::AUTHENTICATION_RETRY_INTERVAL_MAX</a></div><div class="ttdeci">constexpr Duration AUTHENTICATION_RETRY_INTERVAL_MAX</div><div class="ttdef"><b>Definition:</b> constants.hpp:43</div></div> |
| <div class="ttc" id="duration_8hpp_html"><div class="ttname"><a href="duration_8hpp.html">duration.hpp</a></div></div> |
| <div class="ttc" id="classMinutes_html"><div class="ttname"><a href="classMinutes.html">Minutes</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:257</div></div> |
| <div class="ttc" id="classSeconds_html"><div class="ttname"><a href="classSeconds.html">Seconds</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:243</div></div> |
| <div class="ttc" id="namespacemesos_1_1internal_1_1scheduler_html_ac882a9ac40973b4012f4927f39963497"><div class="ttname"><a href="namespacemesos_1_1internal_1_1scheduler.html#ac882a9ac40973b4012f4927f39963497">mesos::internal::scheduler::DEFAULT_REGISTRATION_BACKOFF_FACTOR</a></div><div class="ttdeci">constexpr Duration DEFAULT_REGISTRATION_BACKOFF_FACTOR</div><div class="ttdef"><b>Definition:</b> constants.hpp:35</div></div> |
| <div class="ttc" id="namespacemesos_1_1internal_1_1scheduler_html_ad923027b68dc14e19372c8f1f6dd7c71"><div class="ttname"><a href="namespacemesos_1_1internal_1_1scheduler.html#ad923027b68dc14e19372c8f1f6dd7c71">mesos::internal::scheduler::REGISTRATION_RETRY_INTERVAL_MAX</a></div><div class="ttdeci">constexpr Duration REGISTRATION_RETRY_INTERVAL_MAX</div><div class="ttdef"><b>Definition:</b> constants.hpp:39</div></div> |
| <div class="ttc" id="namespacemesos_1_1internal_1_1scheduler_html_a1e4f1584313a24e26460deed192cc1e6"><div class="ttname"><a href="namespacemesos_1_1internal_1_1scheduler.html#a1e4f1584313a24e26460deed192cc1e6">mesos::internal::scheduler::DEFAULT_AUTHENTICATION_BACKOFF_FACTOR</a></div><div class="ttdeci">constexpr Duration DEFAULT_AUTHENTICATION_BACKOFF_FACTOR</div><div class="ttdef"><b>Definition:</b> constants.hpp:47</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.5 |
| </small></address> |
| </body> |
| </html> |