BloombergLP::balm::CollectorRepository

This class defines a fully thread-safe repository mechanism for Collector and IntegerCollector objects. Collectors are identified in the repository by a MetricId object and also grouped together according to the category of the metric. This repository supports operations to create, find, and collect metric records from the collectors in the repository.

Synopsis

Declared in <balm_collectorrepository.h>

class CollectorRepository;

Member Functions

NameDescription
CollectorRepository [constructor]Create an empty collector repository that will use the specified registry to identify the metrics for which it manages collectors. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined if registry is 0.
~CollectorRepository [destructor]Free all the collectors in this repository and destroy this object.
addCollector addCollector overloads
addIntegerCollector addIntegerCollector overloads
collect collect overloads
collectAndReset collectAndReset overloads
getAddedCollectors getAddedCollectors overloads
getDefaultCollector getDefaultCollector overloads
getDefaultIntegerCollector getDefaultIntegerCollector overloads
registry registry overloads
operator BloombergLP::bslmf::NestedTraitDeclaration<CollectorRepository, UsesBslmaAllocator> Declare that this type uses a bslma allocator.