class EducationStats::Client
EducationStats::Client
is responsible for forwarding Statsd commands to a list of Statd clients. Every command will be forwarded to ALL clients, making this a very distinct concept from Statd shards / sharding which distributes the call load over multiple shards. Multiple shards may still be used in a Statsd instance added through the add 'add_statsd_client' method.
Constants
- FORWARD_METHODS
A list of forwarding methods to build
Attributes
all_clients[R]
Public Class Methods
new(clients)
click to toggle source
Public: Constructor for Client
class.
clients - An array of configured Statd client classes. Commands will be forwarded to each of these clients.
Returns a EducationStats::Client
instance
# File lib/education_stats/client.rb, line 26 def initialize(clients) @all_clients = clients end