-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <title>Class: MCollective::RPC::Stats</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-
-
-
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Class</strong></td>
- <td class="class-name-in-header">MCollective::RPC::Stats</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../../../files/lib/mcollective/rpc/stats_rb.html">
- lib/mcollective/rpc/stats.rb
- </a>
- <br />
- </td>
- </tr>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
- Object
- </td>
- </tr>
- </table>
- </div>
- <!-- banner header -->
+ <title>Class: MCollective::RPC::Stats</title>
- <div id="bodyContent">
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
+ <script src="../../js/jquery.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="../../js/quicksearch.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="../../js/darkfish.js" type="text/javascript"
+ charset="utf-8"></script>
-
- <div id="contextContent">
-
- <div id="description">
- <p>
+</head>
+<body class="class">
+
+ <div id="metadata">
+ <div id="file-metadata">
+ <div id="file-list-section" class="section">
+ <h3 class="section-header">In Files</h3>
+ <div class="section-body">
+ <ul>
+
+ <li><a href="../../lib/mcollective/rpc/stats_rb.html?TB_iframe=true&height=550&width=785"
+ class="thickbox" title="lib/mcollective/rpc/stats.rb">lib/mcollective/rpc/stats.rb</a></li>
+
+ </ul>
+ </div>
+ </div>
+
+
+ </div>
+
+ <div id="class-metadata">
+
+ <!-- Parent Class -->
+
+ <div id="parent-class-section" class="section">
+ <h3 class="section-header">Parent</h3>
+
+ <p class="link"><a href="../../Object.html">Object</a></p>
+
+ </div>
+
+
+ <!-- Namespace Contents -->
+
+
+ <!-- Method Quickref -->
+
+ <div id="method-list-section" class="section">
+ <h3 class="section-header">Methods</h3>
+ <ul class="link-list">
+
+ <li><a href="#M000420">::new</a></li>
+
+ <li><a href="#M000423">#[]</a></li>
+
+ <li><a href="#M000426">#client_stats=</a></li>
+
+ <li><a href="#M000435">#discovered_agents</a></li>
+
+ <li><a href="#M000425">#fail</a></li>
+
+ <li><a href="#M000436">#finish_request</a></li>
+
+ <li><a href="#M000440">#no_response_report</a></li>
+
+ <li><a href="#M000437">#node_responded</a></li>
+
+ <li><a href="#M000424">#ok</a></li>
+
+ <li><a href="#M000439">#report</a></li>
+
+ <li><a href="#M000421">#reset</a></li>
+
+ <li><a href="#M000438">#text_for_aggregates</a></li>
+
+ <li><a href="#M000434">#time_block_execution</a></li>
+
+ <li><a href="#M000427">#time_discovery</a></li>
+
+ <li><a href="#M000422">#to_hash</a></li>
+
+ </ul>
+ </div>
+
+
+ <!-- Included Modules -->
+
+ </div>
+
+ <div id="project-metadata">
+
+
+ <div id="fileindex-section" class="section project-section">
+ <h3 class="section-header">Files</h3>
+ <ul>
+
+ <li class="file"><a href="../../COPYING.html">COPYING</a></li>
+
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
+
+ <li class="file"><a href="../../README.html">README</a></li>
+
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
+
+ <li class="file"><a href="../../etc/client_cfg_dist.html">client.cfg.dist</a></li>
+
+ <li class="file"><a href="../../etc/data-help_erb.html">data-help.erb</a></li>
+
+ <li class="file"><a href="../../etc/discovery-help_erb.html">discovery-help.erb</a></li>
+
+ <li class="file"><a href="../../etc/facts_yaml_dist.html">facts.yaml.dist</a></li>
+
+ <li class="file"><a href="../../etc/metadata-help_erb.html">metadata-help.erb</a></li>
+
+ <li class="file"><a href="../../etc/msg-help_erb.html">msg-help.erb</a></li>
+
+ <li class="file"><a href="../../etc/rpc-help_erb.html">rpc-help.erb</a></li>
+
+ <li class="file"><a href="../../etc/server_cfg_dist.html">server.cfg.dist</a></li>
+
+ <li class="file"><a href="../../etc/ssl/PLACEHOLDER.html">PLACEHOLDER</a></li>
+
+ <li class="file"><a href="../../etc/ssl/clients/PLACEHOLDER.html">PLACEHOLDER</a></li>
+
+ <li class="file"><a href="../../lib/mcollective/generators/templates/action_snippet_erb.html">action_snippet.erb</a></li>
+
+ <li class="file"><a href="../../lib/mcollective/generators/templates/data_input_snippet_erb.html">data_input_snippet.erb</a></li>
+
+ <li class="file"><a href="../../lib/mcollective/generators/templates/ddl_erb.html">ddl.erb</a></li>
+
+ <li class="file"><a href="../../lib/mcollective/generators/templates/plugin_erb.html">plugin.erb</a></li>
+
+ <li class="file"><a href="../../lib/mcollective/locales/en_yml.html">en.yml</a></li>
+
+ <li class="file"><a href="../../mcollective_init.html">mcollective.init</a></li>
+
+ </ul>
+ </div>
+
+
+ <div id="classindex-section" class="section project-section">
+ <h3 class="section-header">Class Index
+ <span class="search-toggle"><img src="../../images/find.png"
+ height="16" width="16" alt="[+]"
+ title="show/hide quicksearch" /></span></h3>
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
+ <fieldset>
+ <legend>Quicksearch</legend>
+ <input type="text" name="quicksearch" value=""
+ class="quicksearch-field" />
+ </fieldset>
+ </form>
+
+ <ul class="link-list">
+
+ <li><a href="../../MCollective.html">MCollective</a></li>
+
+ <li><a href="../../MCollective/Agent.html">MCollective::Agent</a></li>
+
+ <li><a href="../../MCollective/Agents.html">MCollective::Agents</a></li>
+
+ <li><a href="../../MCollective/Aggregate.html">MCollective::Aggregate</a></li>
+
+ <li><a href="../../MCollective/Aggregate/Base.html">MCollective::Aggregate::Base</a></li>
+
+ <li><a href="../../MCollective/Aggregate/Result.html">MCollective::Aggregate::Result</a></li>
+
+ <li><a href="../../MCollective/Aggregate/Result/Base.html">MCollective::Aggregate::Result::Base</a></li>
+
+ <li><a href="../../MCollective/Aggregate/Result/CollectionResult.html">MCollective::Aggregate::Result::CollectionResult</a></li>
+
+ <li><a href="../../MCollective/Aggregate/Result/NumericResult.html">MCollective::Aggregate::Result::NumericResult</a></li>
+
+ <li><a href="../../MCollective/Application.html">MCollective::Application</a></li>
+
+ <li><a href="../../MCollective/Applications.html">MCollective::Applications</a></li>
+
+ <li><a href="../../MCollective/Cache.html">MCollective::Cache</a></li>
+
+ <li><a href="../../MCollective/Client.html">MCollective::Client</a></li>
+
+ <li><a href="../../MCollective/CodedError.html">MCollective::CodedError</a></li>
+
+ <li><a href="../../MCollective/Config.html">MCollective::Config</a></li>
+
+ <li><a href="../../MCollective/Connector.html">MCollective::Connector</a></li>
+
+ <li><a href="../../MCollective/Connector/Base.html">MCollective::Connector::Base</a></li>
+
+ <li><a href="../../MCollective/DDL.html">MCollective::DDL</a></li>
+
+ <li><a href="../../MCollective/DDL/AgentDDL.html">MCollective::DDL::AgentDDL</a></li>
+
+ <li><a href="../../MCollective/DDL/Base.html">MCollective::DDL::Base</a></li>
+
+ <li><a href="../../MCollective/DDL/DataDDL.html">MCollective::DDL::DataDDL</a></li>
+
+ <li><a href="../../MCollective/DDL/DiscoveryDDL.html">MCollective::DDL::DiscoveryDDL</a></li>
+
+ <li><a href="../../MCollective/DDL/ValidatorDDL.html">MCollective::DDL::ValidatorDDL</a></li>
+
+ <li><a href="../../MCollective/DDLValidationError.html">MCollective::DDLValidationError</a></li>
+
+ <li><a href="../../MCollective/Data.html">MCollective::Data</a></li>
+
+ <li><a href="../../MCollective/Data/Base.html">MCollective::Data::Base</a></li>
+
+ <li><a href="../../MCollective/Data/Result.html">MCollective::Data::Result</a></li>
+
+ <li><a href="../../MCollective/Discovery.html">MCollective::Discovery</a></li>
+
+ <li><a href="../../MCollective/Facts.html">MCollective::Facts</a></li>
+
+ <li><a href="../../MCollective/Facts/Base.html">MCollective::Facts::Base</a></li>
+
+ <li><a href="../../MCollective/Generators.html">MCollective::Generators</a></li>
+
+ <li><a href="../../MCollective/Generators/AgentGenerator.html">MCollective::Generators::AgentGenerator</a></li>
+
+ <li><a href="../../MCollective/Generators/Base.html">MCollective::Generators::Base</a></li>
+
+ <li><a href="../../MCollective/Generators/DataGenerator.html">MCollective::Generators::DataGenerator</a></li>
+
+ <li><a href="../../MCollective/InvalidRPCData.html">MCollective::InvalidRPCData</a></li>
+
+ <li><a href="../../MCollective/Log.html">MCollective::Log</a></li>
+
+ <li><a href="../../MCollective/Logger.html">MCollective::Logger</a></li>
+
+ <li><a href="../../MCollective/Logger/Base.html">MCollective::Logger::Base</a></li>
+
+ <li><a href="../../MCollective/Logger/Console_logger.html">MCollective::Logger::Console_logger</a></li>
+
+ <li><a href="../../MCollective/Logger/File_logger.html">MCollective::Logger::File_logger</a></li>
+
+ <li><a href="../../MCollective/Logger/Syslog_logger.html">MCollective::Logger::Syslog_logger</a></li>
+
+ <li><a href="../../MCollective/Matcher.html">MCollective::Matcher</a></li>
+
+ <li><a href="../../MCollective/Matcher/Parser.html">MCollective::Matcher::Parser</a></li>
+
+ <li><a href="../../MCollective/Matcher/Scanner.html">MCollective::Matcher::Scanner</a></li>
+
+ <li><a href="../../MCollective/Message.html">MCollective::Message</a></li>
+
+ <li><a href="../../MCollective/MissingRPCData.html">MCollective::MissingRPCData</a></li>
+
+ <li><a href="../../MCollective/MsgDoesNotMatchRequestID.html">MCollective::MsgDoesNotMatchRequestID</a></li>
+
+ <li><a href="../../MCollective/MsgTTLExpired.html">MCollective::MsgTTLExpired</a></li>
+
+ <li><a href="../../MCollective/NotTargettedAtUs.html">MCollective::NotTargettedAtUs</a></li>
+
+ <li><a href="../../MCollective/Optionparser.html">MCollective::Optionparser</a></li>
+
+ <li><a href="../../MCollective/PluginManager.html">MCollective::PluginManager</a></li>
+
+ <li><a href="../../MCollective/PluginPackager.html">MCollective::PluginPackager</a></li>
+
+ <li><a href="../../MCollective/PluginPackager/AgentDefinition.html">MCollective::PluginPackager::AgentDefinition</a></li>
+
+ <li><a href="../../MCollective/PluginPackager/StandardDefinition.html">MCollective::PluginPackager::StandardDefinition</a></li>
+
+ <li><a href="../../MCollective/RPC.html">MCollective::RPC</a></li>
+
+ <li><a href="../../MCollective/RPC/ActionRunner.html">MCollective::RPC::ActionRunner</a></li>
+
+ <li><a href="../../MCollective/RPC/Agent.html">MCollective::RPC::Agent</a></li>
+
+ <li><a href="../../MCollective/RPC/Audit.html">MCollective::RPC::Audit</a></li>
+
+ <li><a href="../../MCollective/RPC/Client.html">MCollective::RPC::Client</a></li>
+
+ <li><a href="../../MCollective/RPC/Helpers.html">MCollective::RPC::Helpers</a></li>
+
+ <li><a href="../../MCollective/RPC/Progress.html">MCollective::RPC::Progress</a></li>
+
+ <li><a href="../../MCollective/RPC/Reply.html">MCollective::RPC::Reply</a></li>
+
+ <li><a href="../../MCollective/RPC/Request.html">MCollective::RPC::Request</a></li>
+
+ <li><a href="../../MCollective/RPC/Result.html">MCollective::RPC::Result</a></li>
+
+ <li><a href="../../MCollective/RPC/Stats.html">MCollective::RPC::Stats</a></li>
+
+ <li><a href="../../MCollective/RPCAborted.html">MCollective::RPCAborted</a></li>
+
+ <li><a href="../../MCollective/RPCError.html">MCollective::RPCError</a></li>
+
+ <li><a href="../../MCollective/Registration.html">MCollective::Registration</a></li>
+
+ <li><a href="../../MCollective/Registration/Base.html">MCollective::Registration::Base</a></li>
+
+ <li><a href="../../MCollective/Runner.html">MCollective::Runner</a></li>
+
+ <li><a href="../../MCollective/RunnerStats.html">MCollective::RunnerStats</a></li>
+
+ <li><a href="../../MCollective/SSL.html">MCollective::SSL</a></li>
+
+ <li><a href="../../MCollective/Security.html">MCollective::Security</a></li>
+
+ <li><a href="../../MCollective/Security/Base.html">MCollective::Security::Base</a></li>
+
+ <li><a href="../../MCollective/SecurityValidationFailed.html">MCollective::SecurityValidationFailed</a></li>
+
+ <li><a href="../../MCollective/Shell.html">MCollective::Shell</a></li>
+
+ <li><a href="../../MCollective/Translatable.html">MCollective::Translatable</a></li>
+
+ <li><a href="../../MCollective/UnixDaemon.html">MCollective::UnixDaemon</a></li>
+
+ <li><a href="../../MCollective/UnknownRPCAction.html">MCollective::UnknownRPCAction</a></li>
+
+ <li><a href="../../MCollective/UnknownRPCError.html">MCollective::UnknownRPCError</a></li>
+
+ <li><a href="../../MCollective/Util.html">MCollective::Util</a></li>
+
+ <li><a href="../../MCollective/Validator.html">MCollective::Validator</a></li>
+
+ <li><a href="../../MCollective/ValidatorError.html">MCollective::ValidatorError</a></li>
+
+ <li><a href="../../MCollective/WindowsDaemon.html">MCollective::WindowsDaemon</a></li>
+
+ <li><a href="../../Array.html">Array</a></li>
+
+ <li><a href="../../Dir.html">Dir</a></li>
+
+ <li><a href="../../Object.html">Object</a></li>
+
+ <li><a href="../../String.html">String</a></li>
+
+ <li><a href="../../Symbol.html">Symbol</a></li>
+
+ </ul>
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
+ </div>
+
+
+ </div>
+ </div>
+
+ <div id="documentation">
+ <h1 class="class">MCollective::RPC::Stats</h1>
+
+ <div id="description">
+ <p>
Class to wrap all the stats and to keep track of some timings
</p>
- </div>
-
-
- </div>
-
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
-
- <div class="name-list">
- <a href="#M000123">[]</a>
- <a href="#M000126">client_stats=</a>
- <a href="#M000129">discovered_agents</a>
- <a href="#M000125">fail</a>
- <a href="#M000130">finish_request</a>
- <a href="#M000120">new</a>
- <a href="#M000134">no_response_report</a>
- <a href="#M000131">node_responded</a>
- <a href="#M000124">ok</a>
- <a href="#M000133">report</a>
- <a href="#M000121">reset</a>
- <a href="#M000132">text_for_aggregates</a>
- <a href="#M000128">time_block_execution</a>
- <a href="#M000127">time_discovery</a>
- <a href="#M000122">to_hash</a>
- </div>
- </div>
-
- </div>
-
-
- <!-- if includes -->
-
- <div id="section">
-
-
-
-
-
- <div id="attribute-list">
- <h3 class="section-bar">Attributes</h3>
-
- <div class="name-list">
- <table>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">aggregate_failures</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">aggregate_summary</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">blocktime</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">ddl</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">discovered</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">discovered_nodes</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">discoverytime</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">failcount</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">noresponsefrom</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">noresponsefrom</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">okcount</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">requestid</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">responses</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">responsesfrom</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">starttime</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">totaltime</td>
- <td class="context-item-value"> [RW] </td>
- <td class="context-item-desc"></td>
- </tr>
- </table>
- </div>
- </div>
-
-
-
- <!-- if method_list -->
- <div id="methods">
- <h3 class="section-bar">Public Class methods</h3>
-
- <div id="method-M000120" class="method-detail">
- <a name="M000120"></a>
-
- <div class="method-heading">
- <a href="#M000120" class="method-signature">
- <span class="method-name">new</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000120-source">
+ </div>
+
+ <!-- Constants -->
+
+
+ <!-- Attributes -->
+
+ <div id="attribute-method-details" class="method-section section">
+ <h3 class="section-header">Attributes</h3>
+
+
+ <div id="noresponsefrom-attribute-method" class="method-detail">
+ <a name="noresponsefrom"></a>
+
+ <a name="noresponsefrom="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">noresponsefrom</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="starttime-attribute-method" class="method-detail">
+ <a name="starttime"></a>
+
+ <a name="starttime="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">starttime</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="discoverytime-attribute-method" class="method-detail">
+ <a name="discoverytime"></a>
+
+ <a name="discoverytime="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">discoverytime</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="blocktime-attribute-method" class="method-detail">
+ <a name="blocktime"></a>
+
+ <a name="blocktime="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">blocktime</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="responses-attribute-method" class="method-detail">
+ <a name="responses"></a>
+
+ <a name="responses="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">responses</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="totaltime-attribute-method" class="method-detail">
+ <a name="totaltime"></a>
+
+ <a name="totaltime="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">totaltime</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="discovered-attribute-method" class="method-detail">
+ <a name="discovered"></a>
+
+ <a name="discovered="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">discovered</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="discovered-nodes-attribute-method" class="method-detail">
+ <a name="discovered_nodes"></a>
+
+ <a name="discovered_nodes="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">discovered_nodes</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="okcount-attribute-method" class="method-detail">
+ <a name="okcount"></a>
+
+ <a name="okcount="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">okcount</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="failcount-attribute-method" class="method-detail">
+ <a name="failcount"></a>
+
+ <a name="failcount="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">failcount</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="noresponsefrom-attribute-method" class="method-detail">
+ <a name="noresponsefrom"></a>
+
+ <a name="noresponsefrom="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">noresponsefrom</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="responsesfrom-attribute-method" class="method-detail">
+ <a name="responsesfrom"></a>
+
+ <a name="responsesfrom="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">responsesfrom</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="requestid-attribute-method" class="method-detail">
+ <a name="requestid"></a>
+
+ <a name="requestid="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">requestid</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="aggregate-summary-attribute-method" class="method-detail">
+ <a name="aggregate_summary"></a>
+
+ <a name="aggregate_summary="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">aggregate_summary</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="ddl-attribute-method" class="method-detail">
+ <a name="ddl"></a>
+
+ <a name="ddl="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">ddl</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ <div id="aggregate-failures-attribute-method" class="method-detail">
+ <a name="aggregate_failures"></a>
+
+ <a name="aggregate_failures="></a>
+
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name">aggregate_failures</span><span
+ class="attribute-access-type">[RW]</span>
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- Methods -->
+
+ <div id="public-class-method-details" class="method-section section">
+ <h3 class="section-header">Public Class Methods</h3>
+
+
+ <div id="new-method" class="method-detail ">
+ <a name="M000420"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">new</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+
+
+ <div class="method-source-code"
+ id="new-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 9</span>
9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
10: <span class="ruby-identifier">reset</span>
-11: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <h3 class="section-bar">Public Instance methods</h3>
-
- <div id="method-M000123" class="method-detail">
- <a name="M000123"></a>
-
- <div class="method-heading">
- <a href="#M000123" class="method-signature">
- <span class="method-name">[]</span><span class="method-args">(key)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+11: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+ <div id="public-instance-method-details" class="method-section section">
+ <h3 class="section-header">Public Instance Methods</h3>
+
+
+ <div id="--method" class="method-detail ">
+ <a name="M000423"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">[]</span><span
+ class="method-args">(key)</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Fake hash access to keep things backward compatible
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000123-source">
+
+
+
+ <div class="method-source-code"
+ id="--source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 51</span>
51: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
52: <span class="ruby-identifier">to_hash</span>[<span class="ruby-identifier">key</span>]
53: <span class="ruby-keyword kw">rescue</span>
54: <span class="ruby-keyword kw">nil</span>
-55: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000126" class="method-detail">
- <a name="M000126"></a>
-
- <div class="method-heading">
- <a href="#M000126" class="method-signature">
- <span class="method-name">client_stats=</span><span class="method-args">(stats)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+55: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="client-stats--method" class="method-detail ">
+ <a name="M000426"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">client_stats=</span><span
+ class="method-args">(stats)</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Re-initializes the object with stats from the basic client
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000126-source">
+
+
+
+ <div class="method-source-code"
+ id="client-stats--source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 72</span>
72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_stats=</span>(<span class="ruby-identifier">stats</span>)
77: <span class="ruby-ivar">@totaltime</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-identifier">:totaltime</span>]
78: <span class="ruby-ivar">@requestid</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-identifier">:requestid</span>]
79: <span class="ruby-ivar">@discoverytime</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-identifier">:discoverytime</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@discoverytime</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
-80: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000129" class="method-detail">
- <a name="M000129"></a>
-
- <div class="method-heading">
- <a href="#M000129" class="method-signature">
- <span class="method-name">discovered_agents</span><span class="method-args">(agents)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-Update discovered and discovered_nodes based on discovery results
+80: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="discovered-agents-method" class="method-detail ">
+ <a name="M000435"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">discovered_agents</span><span
+ class="method-args">(agents)</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
+Update discovered and <a
+href="Stats.html#discovered_nodes">discovered_nodes</a> based on discovery
+results
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000129-source">
+
+
+
+ <div class="method-source-code"
+ id="discovered-agents-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 110</span>
110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">discovered_agents</span>(<span class="ruby-identifier">agents</span>)
111: <span class="ruby-ivar">@discovered_nodes</span> = <span class="ruby-identifier">agents</span>
112: <span class="ruby-ivar">@discovered</span> = <span class="ruby-identifier">agents</span>.<span class="ruby-identifier">size</span>
-113: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000125" class="method-detail">
- <a name="M000125"></a>
-
- <div class="method-heading">
- <a href="#M000125" class="method-signature">
- <span class="method-name">fail</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+113: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="fail-method" class="method-detail ">
+ <a name="M000425"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">fail</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
increment the count of failed hosts
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000125-source">
+
+
+
+ <div class="method-source-code"
+ id="fail-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 65</span>
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fail</span>
66: <span class="ruby-ivar">@failcount</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
67: <span class="ruby-keyword kw">rescue</span>
68: <span class="ruby-ivar">@failcount</span> = <span class="ruby-value">1</span>
-69: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000130" class="method-detail">
- <a name="M000130"></a>
-
- <div class="method-heading">
- <a href="#M000130" class="method-signature">
- <span class="method-name">finish_request</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+69: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="finish-request-method" class="method-detail ">
+ <a name="M000436"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">finish_request</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Helper to calculate total time etc
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000130-source">
+
+
+
+ <div class="method-source-code"
+ id="finish-request-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 116</span>
116: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finish_request</span>
123: <span class="ruby-keyword kw">rescue</span>
124: <span class="ruby-ivar">@totaltime</span> = <span class="ruby-value">0</span>
125: <span class="ruby-ivar">@noresponsefrom</span> = []
-126: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000134" class="method-detail">
- <a name="M000134"></a>
-
- <div class="method-heading">
- <a href="#M000134" class="method-signature">
- <span class="method-name">no_response_report</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+126: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="no-response-report-method" class="method-detail ">
+ <a name="M000440"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">no_response_report</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Returns a blob of text indicating what nodes did not respond
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000134-source">
+
+
+
+ <div class="method-source-code"
+ id="no-response-report-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 237</span>
237: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">no_response_report</span>
250: <span class="ruby-keyword kw">end</span>
251:
252: <span class="ruby-identifier">result_text</span>.<span class="ruby-identifier">string</span>
-253: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000131" class="method-detail">
- <a name="M000131"></a>
-
- <div class="method-heading">
- <a href="#M000131" class="method-signature">
- <span class="method-name">node_responded</span><span class="method-args">(node)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+253: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="node-responded-method" class="method-detail ">
+ <a name="M000437"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">node_responded</span><span
+ class="method-args">(node)</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Helper to keep track of who we received responses from
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000131-source">
+
+
+
+ <div class="method-source-code"
+ id="node-responded-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 129</span>
129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">node_responded</span>(<span class="ruby-identifier">node</span>)
130: <span class="ruby-ivar">@responsesfrom</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">node</span>
131: <span class="ruby-keyword kw">rescue</span>
132: <span class="ruby-ivar">@responsesfrom</span> = [<span class="ruby-identifier">node</span>]
-133: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000124" class="method-detail">
- <a name="M000124"></a>
-
- <div class="method-heading">
- <a href="#M000124" class="method-signature">
- <span class="method-name">ok</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
-increment the count of <a href="Stats.html#M000124">ok</a> hosts
+133: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="ok-method" class="method-detail ">
+ <a name="M000424"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">ok</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
+increment the count of ok hosts
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000124-source">
+
+
+
+ <div class="method-source-code"
+ id="ok-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 58</span>
58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ok</span>
59: <span class="ruby-ivar">@okcount</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
60: <span class="ruby-keyword kw">rescue</span>
61: <span class="ruby-ivar">@okcount</span> = <span class="ruby-value">1</span>
-62: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000133" class="method-detail">
- <a name="M000133"></a>
-
- <div class="method-heading">
- <a href="#M000133" class="method-signature">
- <span class="method-name">report</span><span class="method-args">(caption = "rpc stats", summarize = true, verbose = false)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+62: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="report-method" class="method-detail ">
+ <a name="M000439"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">report</span><span
+ class="method-args">(caption = "rpc stats", summarize = true, verbose = false)</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Returns a blob of text representing the request status based on the stats
contained in this class
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000133-source">
+
+
+
+ <div class="method-source-code"
+ id="report-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 187</span>
187: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">report</span>(<span class="ruby-identifier">caption</span> = <span class="ruby-value str">"rpc stats"</span>, <span class="ruby-identifier">summarize</span> = <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">false</span>)
231: <span class="ruby-keyword kw">end</span>
232:
233: <span class="ruby-identifier">result_text</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>)
-234: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000121" class="method-detail">
- <a name="M000121"></a>
-
- <div class="method-heading">
- <a href="#M000121" class="method-signature">
- <span class="method-name">reset</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+234: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="reset-method" class="method-detail ">
+ <a name="M000421"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">reset</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Resets stats, if discovery time is set we keep it as it was
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000121-source">
+
+
+
+ <div class="method-source-code"
+ id="reset-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 14</span>
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>
27: <span class="ruby-ivar">@requestid</span> = <span class="ruby-keyword kw">nil</span>
28: <span class="ruby-ivar">@aggregate_summary</span> = []
29: <span class="ruby-ivar">@aggregate_failures</span> = []
-30: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000132" class="method-detail">
- <a name="M000132"></a>
-
- <div class="method-heading">
- <a href="#M000132" class="method-signature">
- <span class="method-name">text_for_aggregates</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000132-source">
+30: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="text-for-aggregates-method" class="method-detail ">
+ <a name="M000438"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">text_for_aggregates</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p class="missing-docs">(Not documented)</p>
+
+
+
+ <div class="method-source-code"
+ id="text-for-aggregates-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 135</span>
135: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_for_aggregates</span>
180: <span class="ruby-keyword kw">end</span>
181:
182: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">string</span>
-183: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000128" class="method-detail">
- <a name="M000128"></a>
-
- <div class="method-heading">
- <a href="#M000128" class="method-signature">
- <span class="method-name">time_block_execution</span><span class="method-args">(action)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+183: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="time-block-execution-method" class="method-detail ">
+ <a name="M000434"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">time_block_execution</span><span
+ class="method-args">(action)</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
helper to time block execution time
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000128-source">
+
+
+
+ <div class="method-source-code"
+ id="time-block-execution-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 96</span>
96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">time_block_execution</span>(<span class="ruby-identifier">action</span>)
103: <span class="ruby-keyword kw">end</span>
104: <span class="ruby-keyword kw">rescue</span>
105: <span class="ruby-ivar">@blocktime</span> = <span class="ruby-value">0</span>
-106: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000127" class="method-detail">
- <a name="M000127"></a>
-
- <div class="method-heading">
- <a href="#M000127" class="method-signature">
- <span class="method-name">time_discovery</span><span class="method-args">(action)</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+106: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="time-discovery-method" class="method-detail ">
+ <a name="M000427"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">time_discovery</span><span
+ class="method-args">(action)</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
Utility to time discovery from :start to :end
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000127-source">
+
+
+
+ <div class="method-source-code"
+ id="time-discovery-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 83</span>
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">time_discovery</span>(<span class="ruby-identifier">action</span>)
90: <span class="ruby-keyword kw">end</span>
91: <span class="ruby-keyword kw">rescue</span>
92: <span class="ruby-ivar">@discoverytime</span> = <span class="ruby-value">0</span>
-93: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
-
- <div id="method-M000122" class="method-detail">
- <a name="M000122"></a>
-
- <div class="method-heading">
- <a href="#M000122" class="method-signature">
- <span class="method-name">to_hash</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- <p>
+93: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <div id="to-hash-method" class="method-detail ">
+ <a name="M000422"></a>
+
+ <div class="method-heading">
+
+ <span class="method-name">to_hash</span><span
+ class="method-args">()</span>
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+ <div class="method-description">
+
+ <p>
returns a hash of our stats
</p>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000122-source">
+
+
+
+ <div class="method-source-code"
+ id="to-hash-source">
<pre>
<span class="ruby-comment cmt"># File lib/mcollective/rpc/stats.rb, line 33</span>
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
45: <span class="ruby-identifier">:failcount</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@failcount</span>,
46: <span class="ruby-identifier">:aggregate_summary</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@aggregate_summary</span>,
47: <span class="ruby-identifier">:aggregate_failures</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@aggregate_failures</span>}
-48: <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
- </div>
- </div>
+48: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+
+ </div>
+
+ </div>
- </div>
+
+ </div>
+
+ </div>
- </div>
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
+
+ <p>Disabled; run with --debug to generate this.</p>
+
+ </div>
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
+ <div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
+ Rdoc Generator</a> 1.1.6</small>.</p>
+ </div>
</body>
-</html>
\ No newline at end of file
+</html>
+