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">&quot;&quot;</span> -370: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;h1&gt;Listener #{listener.host}:#{listener.port}&lt;/h1&gt;&quot;</span> -371: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">&quot;settings&quot;</span>, [ -372: [<span class="ruby-value str">&quot;host&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">host</span>], -373: [<span class="ruby-value str">&quot;port&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">port</span>], -374: [<span class="ruby-value str">&quot;timeout&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">timeout</span>], -375: [<span class="ruby-value str">&quot;workers max&quot;</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">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;h2&gt;Statistics&lt;/h2&gt;&lt;p&gt;N means the number of samples, pay attention to MEAN, SD, MIN and MAX.&quot;</span> -380: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;pre&gt;#{@stats.dump}&lt;/pre&gt;&quot;</span> -381: <span class="ruby-keyword kw">end</span> -382: -383: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;h2&gt;Registered Handlers&lt;/h2&gt;&quot;</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">&lt;&lt;</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">&quot;handlers&quot;</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">&quot;&lt;pre&gt;&quot;</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">&quot;\n&quot;</span>) <span class="ruby-operator">+</span> -389: <span class="ruby-value str">&quot;&lt;/pre&gt;&quot;</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