|
BDE 4.14.0 Production release
|
#include <bdlm_metricsadapter.h>
Public Types | |
| typedef int | CallbackHandle |
| typedef bsl::function< void(Metric *)> | Callback |
Public Member Functions | |
| virtual | ~MetricsAdapter ()=0 |
Destroy this MetricsAdapter. | |
| virtual CallbackHandle | registerCollectionCallback (const MetricDescriptor &metricDescriptor, const Callback &callback)=0 |
| virtual int | removeCollectionCallback (const CallbackHandle &handle)=0 |
This protocol class provides a pure abstract interface and contract for clients and suppliers of metrics adapters.
| typedef bsl::function<void (Metric *)> bdlm::MetricsAdapter::Callback |
| typedef int bdlm::MetricsAdapter::CallbackHandle |
|
pure virtual |
|
pure virtual |
Register the specified callback with a monitoring system, using the specified metricDescriptor for the registration. Return the callback handle to be used with removeCollectionCallback. Note the information used for registration is implementation dependant, and may involve values computed from the supplied arguments.
Implemented in balm::BdlmMetricsAdapter.
|
pure virtual |
Remove the callback associated with the specified handle. Return 0 on success, or a non-zero value if handle cannot be found.
Implemented in balm::BdlmMetricsAdapter.