doc/rdoc/classes/Mongrel/StatusHandler.src/M000068.html in mongrel-0.3.13.4 vs doc/rdoc/classes/Mongrel/StatusHandler.src/M000068.html in mongrel-1.0
- old
+ new
@@ -3,40 +3,16 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>describe_listener (Mongrel::StatusHandler)</title>
+ <title>new (Mongrel::StatusHandler)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 368</span>
-368: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe_listener</span>
-369: <span class="ruby-identifier">results</span> = <span class="ruby-value str">""</span>
-370: <span class="ruby-identifier">results</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<h1>Listener #{listener.host}:#{listener.port}</h1>"</span>
-371: <span class="ruby-identifier">results</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">"settings"</span>, [
-372: [<span class="ruby-value str">"host"</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">host</span>],
-373: [<span class="ruby-value str">"port"</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">port</span>],
-374: [<span class="ruby-value str">"timeout"</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">timeout</span>],
-375: [<span class="ruby-value str">"workers max"</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">num_processors</span>],
-376: ])
-377:
-378: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@stats</span>
-379: <span class="ruby-identifier">results</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"<h2>Statistics</h2><p>N means the number of samples, pay attention to MEAN, SD, MIN and MAX."</span>
-380: <span class="ruby-identifier">results</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<pre>#{@stats.dump}</pre>"</span>
-381: <span class="ruby-keyword kw">end</span>
-382:
-383: <span class="ruby-identifier">results</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"<h2>Registered Handlers</h2>"</span>
-384: <span class="ruby-identifier">uris</span> = <span class="ruby-identifier">listener</span>.<span class="ruby-identifier">classifier</span>.<span class="ruby-identifier">handler_map</span>
-385: <span class="ruby-identifier">results</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">"handlers"</span>, <span class="ruby-identifier">uris</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">uri</span>,<span class="ruby-identifier">handlers</span><span class="ruby-operator">|</span>
-386: [<span class="ruby-identifier">uri</span>,
-387: <span class="ruby-value str">"<pre>"</span> <span class="ruby-operator">+</span>
-388: <span class="ruby-identifier">handlers</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>) <span class="ruby-operator">+</span>
-389: <span class="ruby-value str">"</pre>"</span>
-390: ]
-391: })
-392:
-393: <span class="ruby-identifier">results</span>
-394: <span class="ruby-keyword kw">end</span></pre>
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 357</span>
+357: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">ops</span>={})
+358: <span class="ruby-ivar">@stats</span> = <span class="ruby-identifier">ops</span>[<span class="ruby-identifier">:stats_filter</span>]
+359: <span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file