Class MCollective::RPC::Stats
In: lib/mcollective/rpc/stats.rb
Parent: Object

Class to wrap all the stats and to keep track of some timings

Methods

Attributes

aggregate_failures  [RW] 
aggregate_summary  [RW] 
blocktime  [RW] 
ddl  [RW] 
discovered  [RW] 
discovered_nodes  [RW] 
discoverytime  [RW] 
failcount  [RW] 
noresponsefrom  [RW] 
noresponsefrom  [RW] 
okcount  [RW] 
requestid  [RW] 
responses  [RW] 
responsesfrom  [RW] 
starttime  [RW] 
totaltime  [RW] 

Public Class methods

Public Instance methods

Fake hash access to keep things backward compatible

Re-initializes the object with stats from the basic client

Update discovered and discovered_nodes based on discovery results

increment the count of failed hosts

Helper to calculate total time etc

Returns a blob of text indicating what nodes did not respond

Helper to keep track of who we received responses from

increment the count of ok hosts

Returns a blob of text representing the request status based on the stats contained in this class

Resets stats, if discovery time is set we keep it as it was

helper to time block execution time

Utility to time discovery from :start to :end

returns a hash of our stats

[Validate]