This class defines a mechanism for scheduling the periodic publication of metrics. Each publication scheduler object is supplied the address of a MetricsManager and a bdlmt::TimerEventScheduler at construction. The metrics manager is used to publish metrics, while the timer‐event scheduler provides the underlying scheduling mechanism. Metrics are scheduled for publication using the scheduleCategory and setDefaultSchedule methods. The scheduleCategory method schedules an individual category to be publisher periodically at the provided interval, whereas setDefaultSchedule schedules the periodic publication of any category not given an individual schedule. The publication scheduler will create a recurring timer for each unique time interval supplied, and will group together categories that share a common time interval into a single call to MetricsManager::publish. Note that it is left unspecified whether publication events that occur on a common multiple of different intervals will be grouped into a single invocation of MetricsManager::publish.
Synopsis
Declared in <balm_publicationscheduler.h>
class PublicationScheduler;
Member Functions
Name |
Description |
|
Create a publication scheduler that will use the specified |
|
Destroy this publication scheduler and cancel any pending publications. Note that, if any metrics are currently being published, this operation will block until all of their publications have completed. |
Cancel all periodic publication of metrics. This operation (atomically) clears the default publication schedule and cancels the publication schedule of any category individually scheduled using the |
|
|
|
If the default publication schedule has been set (using |
|
|
|
|
|
Load into the specified |
|
|
|
Print a formatted string describing the current state of this |
|
|
|
Set, to the specified |
|
|
Declare that this type uses a |
Friends
Name |
Description |
defined in implementation |
Created with MrDocs