|
BDE 4.39.x Production Release
|
#include <bdlm_metricsadapter.h>
This protocol class provides a pure abstract interface and contract for clients and suppliers of metrics adapters.
Public Types | |
| typedef int | CallbackHandle |
| typedef bsl::function< void(Metric *)> | Callback |
Public Member Functions | |
| virtual | ~MetricsAdapter ()=0 |
| virtual CallbackHandle | registerCollectionCallback (const MetricDescriptor &metricDescriptor, const Callback &callback)=0 |
| virtual int | removeCollectionCallback (const CallbackHandle &handle)=0 |
| typedef bsl::function<void (Metric *)> bdlm::MetricsAdapter::Callback |
| typedef int bdlm::MetricsAdapter::CallbackHandle |
|
pure virtual |
Destroy this MetricsAdapter.
|
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.