http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2logging_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2logging_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2logging_8hpp_source.html new file mode 100644 index 0000000..b6a80a3 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2logging_8hpp_source.html @@ -0,0 +1,184 @@ +<!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: 3rdparty/libprocess/include/process/logging.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_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_043a76de98701f9bddf61b5e98f305ff.html">libprocess</a></li><li class="navelem"><a class="el" href="dir_eac18f7a64f6f8afbd1493ef4e09abdb.html">include</a></li><li class="navelem"><a class="el" href="dir_1894286df79cf582d947dbc4268b06cf.html">process</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">logging.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="3rdparty_2libprocess_2include_2process_2logging_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 under the Apache License, Version 2.0 (the "License");</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __PROCESS_LOGGING_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __PROCESS_LOGGING_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <glog/logging.h></span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="future_8hpp.html">process/future.hpp</a>></span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2libprocess_2include_2process_2http_8hpp.html">process/http.hpp</a>></span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="libprocess_2include_2process_2process_8hpp.html">process/process.hpp</a>></span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="timeout_8hpp.html">process/timeout.hpp</a>></span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">process</a> {</div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> +<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classprocess_1_1Logging.html"> 25</a></span> <span class="keyword">class </span><a class="code" href="classprocess_1_1Logging.html">Logging</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1Process.html">Process</a><Logging></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classprocess_1_1Logging.html#a33d14fbf25fd137a1482d43b9d81369c"> 28</a></span>  <a class="code" href="classprocess_1_1Logging.html#a33d14fbf25fd137a1482d43b9d81369c">Logging</a>(<a class="code" href="classOption.html">Option<std::string></a> _authenticationRealm)</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  : <a class="code" href="classprocess_1_1ProcessBase.html">ProcessBase</a>(<span class="stringliteral">"logging"</span>),</div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  original(FLAGS_v),</div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  authenticationRealm(_authenticationRealm)</div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  {</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="comment">// Make sure all reads/writes can be done atomically (i.e., to</span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="comment">// make sure VLOG(*) statements don't read partial writes).</span></div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="comment">// TODO(benh): Use "atomics" primitives for doing reads/writes of</span></div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// FLAGS_v anyway to account for proper memory barriers.</span></div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  CHECK(<span class="keyword">sizeof</span>(FLAGS_v) == <span class="keyword">sizeof</span>(int32_t));</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> +<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classprocess_1_1Logging.html#af746e42f1e6f322b6902a2e5ffb84be8"> 40</a></span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Logging.html#af746e42f1e6f322b6902a2e5ffb84be8">~Logging</a>() {}</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="classprocess_1_1Logging.html#a1ac031b63eb2a359579e55fc49c2c577">set_level</a>(<span class="keywordtype">int</span> level, <span class="keyword">const</span> <a class="code" href="classDuration.html">Duration</a>& duration);</div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classprocess_1_1Logging.html#aadc2611836b2e3e9f6ea667e06da4fa5"> 45</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classprocess_1_1Logging.html#aadc2611836b2e3e9f6ea667e06da4fa5">initialize</a>()</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> (authenticationRealm.<a class="code" href="classOption.html#a4e3bf8416d95246f43c91f1b5c309323">isSome</a>()) {</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classprocess_1_1ProcessBase.html#af0d1a6f8da798dfb2b6ea92550b8c6f5">route</a>(<span class="stringliteral">"/toggle"</span>, authenticationRealm.<a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>(), TOGGLE_HELP(), &This::toggle);</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  } <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="classprocess_1_1ProcessBase.html#af0d1a6f8da798dfb2b6ea92550b8c6f5">route</a>(<span class="stringliteral">"/toggle"</span>,</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  TOGGLE_HELP(),</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  [<span class="keyword">this</span>](<span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& <a class="code" href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">request</a>) {</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> This::toggle(request, <a class="code" href="structNone.html">None</a>());</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>  }</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">private</span>:</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> toggle(</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& <a class="code" href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">request</a>,</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span> set(<span class="keywordtype">int</span> v)</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (FLAGS_v != v) {</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  VLOG(FLAGS_v) << <span class="stringliteral">"Setting verbose logging level to "</span> << v;</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  FLAGS_v = v;</div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// Ensure 'FLAGS_v' visible in other threads.</span></div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor"></span> MemoryBarrier();</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#else</span></div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor"></span> __sync_synchronize();</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor"></span> }</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span> revert()</div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {</div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">if</span> (timeout.<a class="code" href="classprocess_1_1Timeout.html#a154543bc53bace270ac54a12b52a1833">remaining</a>() == <a class="code" href="classSeconds.html">Seconds</a>(0)) {</div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  set(original);</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::string TOGGLE_HELP();</div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  Timeout timeout;</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">const</span> int32_t original; <span class="comment">// Original value of FLAGS_v.</span></div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// The authentication realm that the `/logging/toggle` endpoint will be</span></div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// installed into.</span></div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<std::string></a> authenticationRealm;</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> };</div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> } <span class="comment">// namespace process {</span></div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#endif // __PROCESS_LOGGING_HPP__</span></div> +<div class="ttc" id="classprocess_1_1Logging_html_aadc2611836b2e3e9f6ea667e06da4fa5"><div class="ttname"><a href="classprocess_1_1Logging.html#aadc2611836b2e3e9f6ea667e06da4fa5">process::Logging::initialize</a></div><div class="ttdeci">virtual void initialize()</div><div class="ttdoc">Invoked when a process gets spawned. </div><div class="ttdef"><b>Definition:</b> logging.hpp:45</div></div> +<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< std::string ></a></div></div> +<div class="ttc" id="namespaceprocess_1_1http_html_ad8f400b5e54038df7e5662ec35da05fa"><div class="ttname"><a href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">process::http::request</a></div><div class="ttdeci">Future< Response > request(const Request &request, bool streamedResponse=false)</div><div class="ttdoc">Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...</div></div> +<div class="ttc" id="timeout_8hpp_html"><div class="ttname"><a href="timeout_8hpp.html">timeout.hpp</a></div></div> +<div class="ttc" id="classprocess_1_1Logging_html_a33d14fbf25fd137a1482d43b9d81369c"><div class="ttname"><a href="classprocess_1_1Logging.html#a33d14fbf25fd137a1482d43b9d81369c">process::Logging::Logging</a></div><div class="ttdeci">Logging(Option< std::string > _authenticationRealm)</div><div class="ttdef"><b>Definition:</b> logging.hpp:28</div></div> +<div class="ttc" id="classprocess_1_1ProcessBase_html"><div class="ttname"><a href="classprocess_1_1ProcessBase.html">process::ProcessBase</a></div><div class="ttdef"><b>Definition:</b> process.hpp:69</div></div> +<div class="ttc" id="classprocess_1_1ProcessBase_html_af0d1a6f8da798dfb2b6ea92550b8c6f5"><div class="ttname"><a href="classprocess_1_1ProcessBase.html#af0d1a6f8da798dfb2b6ea92550b8c6f5">process::ProcessBase::route</a></div><div class="ttdeci">void route(const std::string &name, const Option< std::string > &help, const HttpRequestHandler &handler, const RouteOptions &options=RouteOptions())</div><div class="ttdoc">Sets up a handler for HTTP requests with the specified name. </div></div> +<div class="ttc" id="classDuration_html"><div class="ttname"><a href="classDuration.html">Duration</a></div><div class="ttdef"><b>Definition:</b> duration.hpp:32</div></div> +<div class="ttc" id="classOption_html_a4e3bf8416d95246f43c91f1b5c309323"><div class="ttname"><a href="classOption.html#a4e3bf8416d95246f43c91f1b5c309323">Option::isSome</a></div><div class="ttdeci">bool isSome() const </div><div class="ttdef"><b>Definition:</b> option.hpp:108</div></div> +<div class="ttc" id="structprocess_1_1http_1_1Request_html"><div class="ttname"><a href="structprocess_1_1http_1_1Request.html">process::http::Request</a></div><div class="ttdef"><b>Definition:</b> http.hpp:511</div></div> +<div class="ttc" id="classprocess_1_1Logging_html"><div class="ttname"><a href="classprocess_1_1Logging.html">process::Logging</a></div><div class="ttdef"><b>Definition:</b> logging.hpp:25</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="classOption_html_a21358442c0fac1cc978a67a9a9089a79"><div class="ttname"><a href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">Option::get</a></div><div class="ttdeci">const T & get() const &</div><div class="ttdef"><b>Definition:</b> option.hpp:111</div></div> +<div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div> +<div class="ttc" id="namespaceos_html_ae19e4161a51b86a1f330f3bf1dc75389"><div class="ttname"><a href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a></div><div class="ttdeci">Result< Process > process(pid_t pid)</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:30</div></div> +<div class="ttc" id="structNone_html"><div class="ttname"><a href="structNone.html">None</a></div><div class="ttdef"><b>Definition:</b> none.hpp:27</div></div> +<div class="ttc" id="classprocess_1_1Logging_html_a1ac031b63eb2a359579e55fc49c2c577"><div class="ttname"><a href="classprocess_1_1Logging.html#a1ac031b63eb2a359579e55fc49c2c577">process::Logging::set_level</a></div><div class="ttdeci">Future< Nothing > set_level(int level, const Duration &duration)</div></div> +<div class="ttc" id="3rdparty_2libprocess_2include_2process_2http_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2http_8hpp.html">http.hpp</a></div></div> +<div class="ttc" id="classprocess_1_1Process_html"><div class="ttname"><a href="classprocess_1_1Process.html">process::Process</a></div><div class="ttdef"><b>Definition:</b> process.hpp:490</div></div> +<div class="ttc" id="libprocess_2include_2process_2process_8hpp_html"><div class="ttname"><a href="libprocess_2include_2process_2process_8hpp.html">process.hpp</a></div></div> +<div class="ttc" id="classprocess_1_1Logging_html_af746e42f1e6f322b6902a2e5ffb84be8"><div class="ttname"><a href="classprocess_1_1Logging.html#af746e42f1e6f322b6902a2e5ffb84be8">process::Logging::~Logging</a></div><div class="ttdeci">virtual ~Logging()</div><div class="ttdef"><b>Definition:</b> logging.hpp:40</div></div> +<div class="ttc" id="classprocess_1_1Timeout_html_a154543bc53bace270ac54a12b52a1833"><div class="ttname"><a href="classprocess_1_1Timeout.html#a154543bc53bace270ac54a12b52a1833">process::Timeout::remaining</a></div><div class="ttdeci">Duration remaining() const </div><div class="ttdef"><b>Definition:</b> timeout.hpp:77</div></div> +<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future< Nothing ></a></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>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp.html new file mode 100644 index 0000000..bcec484 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp.html @@ -0,0 +1,81 @@ +<!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: 3rdparty/libprocess/include/process/message.hpp File Reference</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main 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_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_043a76de98701f9bddf61b5e98f305ff.html">libprocess</a></li><li class="navelem"><a class="el" href="dir_eac18f7a64f6f8afbd1493ef4e09abdb.html">include</a></li><li class="navelem"><a class="el" href="dir_1894286df79cf582d947dbc4268b06cf.html">process</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#nested-classes">Classes</a> | +<a href="#namespaces">Namespaces</a> </div> + <div class="headertitle"> +<div class="title">message.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <string></code><br/> +<code>#include <<a class="el" href="3rdparty_2libprocess_2include_2process_2pid_8hpp_source.html">process/pid.hpp</a>></code><br/> +</div> +<p><a href="3rdparty_2libprocess_2include_2process_2message_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> +Classes</h2></td></tr> +<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structprocess_1_1Message.html">process::Message</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespaceprocess"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess.html">process</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table> +</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> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp_source.html new file mode 100644 index 0000000..adf93a3 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2message_8hpp_source.html @@ -0,0 +1,103 @@ +<!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: 3rdparty/libprocess/include/process/message.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_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_043a76de98701f9bddf61b5e98f305ff.html">libprocess</a></li><li class="navelem"><a class="el" href="dir_eac18f7a64f6f8afbd1493ef4e09abdb.html">include</a></li><li class="navelem"><a class="el" href="dir_1894286df79cf582d947dbc4268b06cf.html">process</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">message.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="3rdparty_2libprocess_2include_2process_2message_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 under the Apache License, Version 2.0 (the "License");</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __PROCESS_MESSAGE_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __PROCESS_MESSAGE_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2libprocess_2include_2process_2pid_8hpp.html">process/pid.hpp</a>></span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">process</a> {</div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> +<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structprocess_1_1Message.html"> 22</a></span> <span class="keyword">struct </span><a class="code" href="structprocess_1_1Message.html">Message</a></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div> +<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structprocess_1_1Message.html#a97a2032a98cf03075101d02dbc50539c"> 24</a></span>  std::string <a class="code" href="structprocess_1_1Message.html#a97a2032a98cf03075101d02dbc50539c">name</a>;</div> +<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="structprocess_1_1Message.html#a34b9bf104323f4cb48049c00046bf02c"> 25</a></span>  <a class="code" href="structprocess_1_1UPID.html">UPID</a> <a class="code" href="structprocess_1_1Message.html#a34b9bf104323f4cb48049c00046bf02c">from</a>;</div> +<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structprocess_1_1Message.html#a8a407ef45ff459747256f8d701951d28"> 26</a></span>  <a class="code" href="structprocess_1_1UPID.html">UPID</a> <a class="code" href="structprocess_1_1Message.html#a8a407ef45ff459747256f8d701951d28">to</a>;</div> +<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structprocess_1_1Message.html#aba0d1f741d939864cf287833dd14792e"> 27</a></span>  std::string <a class="code" href="structprocess_1_1Message.html#aba0d1f741d939864cf287833dd14792e">body</a>;</div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> };</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> } <span class="comment">// namespace process {</span></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#endif // __PROCESS_MESSAGE_HPP__</span></div> +<div class="ttc" id="structprocess_1_1Message_html"><div class="ttname"><a href="structprocess_1_1Message.html">process::Message</a></div><div class="ttdef"><b>Definition:</b> message.hpp:22</div></div> +<div class="ttc" id="structprocess_1_1Message_html_a8a407ef45ff459747256f8d701951d28"><div class="ttname"><a href="structprocess_1_1Message.html#a8a407ef45ff459747256f8d701951d28">process::Message::to</a></div><div class="ttdeci">UPID to</div><div class="ttdef"><b>Definition:</b> message.hpp:26</div></div> +<div class="ttc" id="structprocess_1_1Message_html_a34b9bf104323f4cb48049c00046bf02c"><div class="ttname"><a href="structprocess_1_1Message.html#a34b9bf104323f4cb48049c00046bf02c">process::Message::from</a></div><div class="ttdeci">UPID from</div><div class="ttdef"><b>Definition:</b> message.hpp:25</div></div> +<div class="ttc" id="structprocess_1_1UPID_html"><div class="ttname"><a href="structprocess_1_1UPID.html">process::UPID</a></div><div class="ttdoc">An &quot;untyped&quot; PID, used to encapsulate the process ID for lower-layer abstractions (eg...</div><div class="ttdef"><b>Definition:</b> pid.hpp:39</div></div> +<div class="ttc" id="3rdparty_2libprocess_2include_2process_2pid_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2pid_8hpp.html">pid.hpp</a></div></div> +<div class="ttc" id="namespaceos_html_ae19e4161a51b86a1f330f3bf1dc75389"><div class="ttname"><a href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a></div><div class="ttdeci">Result< Process > process(pid_t pid)</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:30</div></div> +<div class="ttc" id="structprocess_1_1Message_html_aba0d1f741d939864cf287833dd14792e"><div class="ttname"><a href="structprocess_1_1Message.html#aba0d1f741d939864cf287833dd14792e">process::Message::body</a></div><div class="ttdeci">std::string body</div><div class="ttdef"><b>Definition:</b> message.hpp:27</div></div> +<div class="ttc" id="structprocess_1_1Message_html_a97a2032a98cf03075101d02dbc50539c"><div class="ttname"><a href="structprocess_1_1Message.html#a97a2032a98cf03075101d02dbc50539c">process::Message::name</a></div><div class="ttdeci">std::string name</div><div class="ttdef"><b>Definition:</b> message.hpp:24</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> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp.html new file mode 100644 index 0000000..0550793 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp.html @@ -0,0 +1,111 @@ +<!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: 3rdparty/libprocess/include/process/metrics/metrics.hpp File Reference</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main 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_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_043a76de98701f9bddf61b5e98f305ff.html">libprocess</a></li><li class="navelem"><a class="el" href="dir_eac18f7a64f6f8afbd1493ef4e09abdb.html">include</a></li><li class="navelem"><a class="el" href="dir_1894286df79cf582d947dbc4268b06cf.html">process</a></li><li class="navelem"><a class="el" href="dir_0c2042cbda9076eebbde73e7b1892dff.html">metrics</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#nested-classes">Classes</a> | +<a href="#namespaces">Namespaces</a> | +<a href="#func-members">Functions</a> | +<a href="#var-members">Variables</a> </div> + <div class="headertitle"> +<div class="title">metrics.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <string></code><br/> +<code>#include <<a class="el" href="dispatch_8hpp_source.html">process/dispatch.hpp</a>></code><br/> +<code>#include <<a class="el" href="future_8hpp_source.html">process/future.hpp</a>></code><br/> +<code>#include <<a class="el" href="3rdparty_2libprocess_2include_2process_2limiter_8hpp_source.html">process/limiter.hpp</a>></code><br/> +<code>#include <<a class="el" href="owned_8hpp_source.html">process/owned.hpp</a>></code><br/> +<code>#include <<a class="el" href="libprocess_2include_2process_2process_8hpp_source.html">process/process.hpp</a>></code><br/> +<code>#include <<a class="el" href="metric_8hpp_source.html">process/metrics/metric.hpp</a>></code><br/> +<code>#include <<a class="el" href="hashmap_8hpp_source.html">stout/hashmap.hpp</a>></code><br/> +<code>#include <<a class="el" href="nothing_8hpp_source.html">stout/nothing.hpp</a>></code><br/> +<code>#include <<a class="el" href="option_8hpp_source.html">stout/option.hpp</a>></code><br/> +</div> +<p><a href="3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> +Classes</h2></td></tr> +<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">process::metrics::internal::MetricsProcess</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespaceprocess"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess.html">process</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:namespaceprocess_1_1metrics"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1metrics.html">process::metrics</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:namespaceprocess_1_1metrics_1_1internal"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1metrics_1_1internal.html">process::metrics::internal</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> +Functions</h2></td></tr> +<tr class="memitem:a15af50f3f4dbcca2f7c619ccfbaa70b2"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> +<tr class="memitem:a15af50f3f4dbcca2f7c619ccfbaa70b2"><td class="memTemplItemLeft" align="right" valign="top">Future< <a class="el" href="structNothing.html">Nothing</a> > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">process::metrics::add</a> (const T &metric)</td></tr> +<tr class="separator:a15af50f3f4dbcca2f7c619ccfbaa70b2"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ad561ce447753dc2edad5d52a8776a141"><td class="memItemLeft" align="right" valign="top">Future< <a class="el" href="structNothing.html">Nothing</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141">process::metrics::remove</a> (const Metric &metric)</td></tr> +<tr class="separator:ad561ce447753dc2edad5d52a8776a141"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a767a7c1dc04bf1c7c0445657baa0a475"><td class="memItemLeft" align="right" valign="top">Future< <a class="el" href="classhashmap.html">hashmap</a>< std::string, <br class="typebreak"/> +double > > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1metrics.html#a767a7c1dc04bf1c7c0445657baa0a475">process::metrics::snapshot</a> (const <a class="el" href="classOption.html">Option</a>< <a class="el" href="classDuration.html">Duration</a> > &timeout)</td></tr> +<tr class="separator:a767a7c1dc04bf1c7c0445657baa0a475"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> +Variables</h2></td></tr> +<tr class="memitem:aaa37243f659788386a13de558eba70a7"><td class="memItemLeft" align="right" valign="top">PID< MetricsProcess > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1metrics_1_1internal.html#aaa37243f659788386a13de558eba70a7">process::metrics::internal::metrics</a></td></tr> +<tr class="separator:aaa37243f659788386a13de558eba70a7"><td class="memSeparator" colspan="2"> </td></tr> +</table> +</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> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp_source.html new file mode 100644 index 0000000..570a867 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2metrics_2metrics_8hpp_source.html @@ -0,0 +1,233 @@ +<!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: 3rdparty/libprocess/include/process/metrics/metrics.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_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_043a76de98701f9bddf61b5e98f305ff.html">libprocess</a></li><li class="navelem"><a class="el" href="dir_eac18f7a64f6f8afbd1493ef4e09abdb.html">include</a></li><li class="navelem"><a class="el" href="dir_1894286df79cf582d947dbc4268b06cf.html">process</a></li><li class="navelem"><a class="el" href="dir_0c2042cbda9076eebbde73e7b1892dff.html">metrics</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">metrics.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="3rdparty_2libprocess_2include_2process_2metrics_2metrics_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 under the Apache License, Version 2.0 (the "License");</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __PROCESS_METRICS_METRICS_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __PROCESS_METRICS_METRICS_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="dispatch_8hpp.html">process/dispatch.hpp</a>></span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="future_8hpp.html">process/future.hpp</a>></span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2libprocess_2include_2process_2limiter_8hpp.html">process/limiter.hpp</a>></span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="owned_8hpp.html">process/owned.hpp</a>></span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="libprocess_2include_2process_2process_8hpp.html">process/process.hpp</a>></span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="metric_8hpp.html">process/metrics/metric.hpp</a>></span></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="preprocessor">#include <<a class="code" href="hashmap_8hpp.html">stout/hashmap.hpp</a>></span></div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="option_8hpp.html">stout/option.hpp</a>></span></div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">process</a> {</div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">namespace </span><a class="code" href="namespaceprocess_1_1metrics_1_1internal.html#aaa37243f659788386a13de558eba70a7">metrics</a> {</div> +<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1metrics_1_1internal.html"> 32</a></span> <span class="keyword">namespace </span>internal {</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> +<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html"> 34</a></span> <span class="keyword">class </span><a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">MetricsProcess</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1Process.html">Process</a><MetricsProcess></div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">static</span> <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">MetricsProcess</a>* <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#a1b0e6141bb79047bf1247e27c2befcfd">create</a>(<span class="keyword">const</span> <a class="code" href="classOption.html">Option<std::string></a>& authenticationRealm);</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#a06759b57c213fa98c8d957e347f2a9b5">add</a>(<a class="code" href="classprocess_1_1Owned.html">Owned<Metric></a> metric);</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>  <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <span class="keyword">remove</span>(<span class="keyword">const</span> std::string& <a class="code" href="namespaceos_1_1Shell.html#acfe16ef2b1146ad49a8651c0a457ce46">name</a>);</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classprocess_1_1Future.html">Future<hashmap<std::string, double></a>> <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#ab276c60b63527c1a94d5ece44efe63ce">snapshot</a>(</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<Duration></a>& timeout);</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#a481de823013045447009d4554fdaf69d">initialize</a>();</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="keyword">private</span>:</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">static</span> std::string help();</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>  <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">MetricsProcess</a>(</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option</a><<a class="code" href="classprocess_1_1Owned.html">Owned<RateLimiter></a>>& _limiter,</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<std::string></a>& _authenticationRealm)</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  : <a class="code" href="classprocess_1_1ProcessBase.html#a318038bacd95e4260864533f7cfe12fd">ProcessBase</a>(<span class="stringliteral">"metrics"</span>),</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  limiter(_limiter),</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  authenticationRealm(_authenticationRealm)</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> </div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// Non-copyable, non-assignable.</span></div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">MetricsProcess</a>(<span class="keyword">const</span> <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">MetricsProcess</a>&);</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">MetricsProcess</a>& operator=(<span class="keyword">const</span> <a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">MetricsProcess</a>&);</div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classprocess_1_1Future.html">Future<http::Response></a> _snapshot(</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">const</span> <a class="code" href="structprocess_1_1http_1_1Request.html">http::Request</a>& <a class="code" href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">request</a>,</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<http::authentication::Principal></a>&);</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">static</span> std::list<Future<double>> _snapshotTimeout(</div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">const</span> <a class="code" href="namespacecgroups_1_1devices.html#a22494291bc2cb89697dcd2b5f288bdd3">std::list</a><<a class="code" href="classprocess_1_1Future.html">Future<double></a>>& futures);</div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">static</span> <a class="code" href="classprocess_1_1Future.html">Future<hashmap<std::string, double></a>> __snapshot(</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<Duration></a>& timeout,</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">const</span> <a class="code" href="classhashmap.html">hashmap</a><std::string, <a class="code" href="classprocess_1_1Future.html">Future<double></a>>& metrics,</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">const</span> <a class="code" href="classhashmap.html">hashmap</a><std::string, <a class="code" href="classOption.html">Option</a><<a class="code" href="structprocess_1_1Statistics.html">Statistics<double></a>>>& <a class="code" href="namespacerouting_1_1link.html#a8486fce953717fcb949bfdc17a2dd3e1">statistics</a>);</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">// The Owned<Metric> is an explicit copy of the Metric passed to 'add'.</span></div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="classhashmap.html">hashmap<std::string, Owned<Metric></a>> metrics;</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">// Used to rate limit the snapshot endpoint.</span></div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classOption.html">Option<Owned<RateLimiter></a>> limiter;</div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="comment">// The authentication realm that metrics HTTP endpoints are installed into.</span></div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<std::string></a> authenticationRealm;</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> };</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment">// Global metrics process. Defined in process.cpp.</span></div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="keyword">extern</span> <a class="code" href="structprocess_1_1PID.html">PID<MetricsProcess></a> <a class="code" href="namespaceprocess_1_1metrics_1_1internal.html#aaa37243f659788386a13de558eba70a7">metrics</a>;</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> } <span class="comment">// namespace internal {</span></div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div> +<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2"> 94</a></span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">add</a>(<span class="keyword">const</span> T& metric)</div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> {</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="comment">// The metrics process is instantiated in `process::initialize`.</span></div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="namespaceprocess.html#a6c9cd01950a98038b2a6df3e5066418f">process::initialize</a>();</div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// There is an explicit copy in this call to ensure we end up owning</span></div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// the last copy of a Metric when we remove it.</span></div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceprocess.html#acfbc29404bc653268289691b0dd59e22">dispatch</a>(</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="namespaceprocess_1_1metrics_1_1internal.html#aaa37243f659788386a13de558eba70a7">internal::metrics</a>,</div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  &<a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#a06759b57c213fa98c8d957e347f2a9b5">internal::MetricsProcess::add</a>,</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classprocess_1_1Owned.html">Owned<Metric></a>(<span class="keyword">new</span> T(metric)));</div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> }</div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div> +<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1metrics.html#ad561ce447753dc2edad5d52a8776a141"> 108</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <span class="keyword">remove</span>(<span class="keyword">const</span> <a class="code" href="classprocess_1_1metrics_1_1Metric.html">Metric</a>& metric)</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> {</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">// The metrics process is instantiated in `process::initialize`.</span></div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="namespaceprocess.html#a6c9cd01950a98038b2a6df3e5066418f">process::initialize</a>();</div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceprocess.html#acfbc29404bc653268289691b0dd59e22">dispatch</a>(</div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="namespaceprocess_1_1metrics_1_1internal.html#aaa37243f659788386a13de558eba70a7">internal::metrics</a>,</div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  &<a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#ad5879be2708a6b45ee29fe4acfe0eece">internal::MetricsProcess::remove</a>,</div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  metric.name());</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div> +<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1metrics.html#a767a7c1dc04bf1c7c0445657baa0a475"> 120</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1Future.html">Future<hashmap<std::string, double></a>> <a class="code" href="namespaceprocess_1_1metrics.html#a767a7c1dc04bf1c7c0445657baa0a475">snapshot</a>(</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<Duration></a>& timeout)</div> +<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> {</div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="comment">// The metrics process is instantiated in `process::initialize`.</span></div> +<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="namespaceprocess.html#a6c9cd01950a98038b2a6df3e5066418f">process::initialize</a>();</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceprocess.html#acfbc29404bc653268289691b0dd59e22">dispatch</a>(</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="namespaceprocess_1_1metrics_1_1internal.html#aaa37243f659788386a13de558eba70a7">internal::metrics</a>,</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  &<a class="code" href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#ab276c60b63527c1a94d5ece44efe63ce">internal::MetricsProcess::snapshot</a>,</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  timeout);</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> }</div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> } <span class="comment">// namespace metrics {</span></div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> } <span class="comment">// namespace process {</span></div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="preprocessor">#endif // __PROCESS_METRICS_METRICS_HPP__</span></div> +<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< std::string ></a></div></div> +<div class="ttc" id="namespaceprocess_1_1http_html_ad8f400b5e54038df7e5662ec35da05fa"><div class="ttname"><a href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">process::http::request</a></div><div class="ttdeci">Future< Response > request(const Request &request, bool streamedResponse=false)</div><div class="ttdoc">Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...</div></div> +<div class="ttc" id="metric_8hpp_html"><div class="ttname"><a href="metric_8hpp.html">metric.hpp</a></div></div> +<div class="ttc" id="classprocess_1_1ProcessBase_html_a318038bacd95e4260864533f7cfe12fd"><div class="ttname"><a href="classprocess_1_1ProcessBase.html#a318038bacd95e4260864533f7cfe12fd">process::ProcessBase::ProcessBase</a></div><div class="ttdeci">ProcessBase(const std::string &id="")</div></div> +<div class="ttc" id="classprocess_1_1metrics_1_1internal_1_1MetricsProcess_html"><div class="ttname"><a href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html">process::metrics::internal::MetricsProcess</a></div><div class="ttdef"><b>Definition:</b> metrics.hpp:34</div></div> +<div class="ttc" id="namespaceprocess_html_a6c9cd01950a98038b2a6df3e5066418f"><div class="ttname"><a href="namespaceprocess.html#a6c9cd01950a98038b2a6df3e5066418f">process::initialize</a></div><div class="ttdeci">bool initialize(const Option< std::string > &delegate=None(), const Option< std::string > &readwriteAuthenticationRealm=None(), const Option< std::string > &readonlyAuthenticationRealm=None())</div><div class="ttdoc">Initialize the library. </div></div> +<div class="ttc" id="classprocess_1_1metrics_1_1Metric_html"><div class="ttname"><a href="classprocess_1_1metrics_1_1Metric.html">process::metrics::Metric</a></div><div class="ttdef"><b>Definition:</b> metric.hpp:33</div></div> +<div class="ttc" id="classprocess_1_1metrics_1_1internal_1_1MetricsProcess_html_ad5879be2708a6b45ee29fe4acfe0eece"><div class="ttname"><a href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#ad5879be2708a6b45ee29fe4acfe0eece">process::metrics::internal::MetricsProcess::remove</a></div><div class="ttdeci">Future< Nothing > remove(const std::string &name)</div></div> +<div class="ttc" id="namespacerouting_1_1link_html_a8486fce953717fcb949bfdc17a2dd3e1"><div class="ttname"><a href="namespacerouting_1_1link.html#a8486fce953717fcb949bfdc17a2dd3e1">routing::link::statistics</a></div><div class="ttdeci">Result< hashmap< std::string, uint64_t > > statistics(const std::string &link)</div></div> +<div class="ttc" id="dispatch_8hpp_html"><div class="ttname"><a href="dispatch_8hpp.html">dispatch.hpp</a></div></div> +<div class="ttc" id="namespaceprocess_1_1metrics_html_a15af50f3f4dbcca2f7c619ccfbaa70b2"><div class="ttname"><a href="namespaceprocess_1_1metrics.html#a15af50f3f4dbcca2f7c619ccfbaa70b2">process::metrics::add</a></div><div class="ttdeci">Future< Nothing > add(const T &metric)</div><div class="ttdef"><b>Definition:</b> metrics.hpp:94</div></div> +<div class="ttc" id="structprocess_1_1http_1_1Request_html"><div class="ttname"><a href="structprocess_1_1http_1_1Request.html">process::http::Request</a></div><div class="ttdef"><b>Definition:</b> http.hpp:511</div></div> +<div class="ttc" id="classhashmap_html"><div class="ttname"><a href="classhashmap.html">hashmap</a></div><div class="ttdef"><b>Definition:</b> hashmap.hpp:36</div></div> +<div class="ttc" id="namespaceprocess_html_acfbc29404bc653268289691b0dd59e22"><div class="ttname"><a href="namespaceprocess.html#acfbc29404bc653268289691b0dd59e22">process::dispatch</a></div><div class="ttdeci">void dispatch(const PID< T > &pid, void(T::*method)())</div><div class="ttdef"><b>Definition:</b> dispatch.hpp:157</div></div> +<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div> +<div class="ttc" id="classprocess_1_1metrics_1_1internal_1_1MetricsProcess_html_a481de823013045447009d4554fdaf69d"><div class="ttname"><a href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#a481de823013045447009d4554fdaf69d">process::metrics::internal::MetricsProcess::initialize</a></div><div class="ttdeci">virtual void initialize()</div><div class="ttdoc">Invoked when a process gets spawned. </div></div> +<div class="ttc" id="classprocess_1_1metrics_1_1internal_1_1MetricsProcess_html_ab276c60b63527c1a94d5ece44efe63ce"><div class="ttname"><a href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#ab276c60b63527c1a94d5ece44efe63ce">process::metrics::internal::MetricsProcess::snapshot</a></div><div class="ttdeci">Future< hashmap< std::string, double > > snapshot(const Option< Duration > &timeout)</div></div> +<div class="ttc" id="classprocess_1_1metrics_1_1internal_1_1MetricsProcess_html_a1b0e6141bb79047bf1247e27c2befcfd"><div class="ttname"><a href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#a1b0e6141bb79047bf1247e27c2befcfd">process::metrics::internal::MetricsProcess::create</a></div><div class="ttdeci">static MetricsProcess * create(const Option< std::string > &authenticationRealm)</div></div> +<div class="ttc" id="option_8hpp_html"><div class="ttname"><a href="option_8hpp.html">option.hpp</a></div></div> +<div class="ttc" id="namespacecgroups_1_1devices_html_a22494291bc2cb89697dcd2b5f288bdd3"><div class="ttname"><a href="namespacecgroups_1_1devices.html#a22494291bc2cb89697dcd2b5f288bdd3">cgroups::devices::list</a></div><div class="ttdeci">Try< std::vector< Entry > > list(const std::string &hierarchy, const std::string &cgroup)</div></div> +<div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div> +<div class="ttc" id="namespaceos_html_ae19e4161a51b86a1f330f3bf1dc75389"><div class="ttname"><a href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a></div><div class="ttdeci">Result< Process > process(pid_t pid)</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:30</div></div> +<div class="ttc" id="structprocess_1_1PID_html"><div class="ttname"><a href="structprocess_1_1PID.html">process::PID</a></div><div class="ttdoc">A &quot;process identifier&quot; used to uniquely identify a process when dispatching messages. </div><div class="ttdef"><b>Definition:</b> pid.hpp:127</div></div> +<div class="ttc" id="owned_8hpp_html"><div class="ttname"><a href="owned_8hpp.html">owned.hpp</a></div></div> +<div class="ttc" id="3rdparty_2libprocess_2include_2process_2limiter_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2limiter_8hpp.html">limiter.hpp</a></div></div> +<div class="ttc" id="namespaceprocess_1_1metrics_html_a767a7c1dc04bf1c7c0445657baa0a475"><div class="ttname"><a href="namespaceprocess_1_1metrics.html#a767a7c1dc04bf1c7c0445657baa0a475">process::metrics::snapshot</a></div><div class="ttdeci">Future< hashmap< std::string, double > > snapshot(const Option< Duration > &timeout)</div><div class="ttdef"><b>Definition:</b> metrics.hpp:120</div></div> +<div class="ttc" id="classprocess_1_1Owned_html"><div class="ttname"><a href="classprocess_1_1Owned.html">process::Owned</a></div><div class="ttdef"><b>Definition:</b> owned.hpp:35</div></div> +<div class="ttc" id="classprocess_1_1metrics_1_1internal_1_1MetricsProcess_html_a06759b57c213fa98c8d957e347f2a9b5"><div class="ttname"><a href="classprocess_1_1metrics_1_1internal_1_1MetricsProcess.html#a06759b57c213fa98c8d957e347f2a9b5">process::metrics::internal::MetricsProcess::add</a></div><div class="ttdeci">Future< Nothing > add(Owned< Metric > metric)</div></div> +<div class="ttc" id="classprocess_1_1Process_html"><div class="ttname"><a href="classprocess_1_1Process.html">process::Process</a></div><div class="ttdef"><b>Definition:</b> process.hpp:490</div></div> +<div class="ttc" id="namespaceprocess_1_1metrics_1_1internal_html_aaa37243f659788386a13de558eba70a7"><div class="ttname"><a href="namespaceprocess_1_1metrics_1_1internal.html#aaa37243f659788386a13de558eba70a7">process::metrics::internal::metrics</a></div><div class="ttdeci">PID< MetricsProcess > metrics</div></div> +<div class="ttc" id="libprocess_2include_2process_2process_8hpp_html"><div class="ttname"><a href="libprocess_2include_2process_2process_8hpp.html">process.hpp</a></div></div> +<div class="ttc" id="namespaceos_1_1Shell_html_acfe16ef2b1146ad49a8651c0a457ce46"><div class="ttname"><a href="namespaceos_1_1Shell.html#acfe16ef2b1146ad49a8651c0a457ce46">os::Shell::name</a></div><div class="ttdeci">constexpr const char * name</div><div class="ttdef"><b>Definition:</b> shell.hpp:41</div></div> +<div class="ttc" id="structprocess_1_1Statistics_html"><div class="ttname"><a href="structprocess_1_1Statistics.html">process::Statistics</a></div><div class="ttdef"><b>Definition:</b> statistics.hpp:30</div></div> +<div class="ttc" id="hashmap_8hpp_html"><div class="ttname"><a href="hashmap_8hpp.html">hashmap.hpp</a></div></div> +<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future< Nothing ></a></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>