20#include <xrpl/beast/insight/NullCollector.h>
123 return Hook(std::make_shared<detail::NullHookImpl>());
129 return Counter(std::make_shared<detail::NullCounterImpl>());
135 return Event(std::make_shared<detail::NullEventImpl>());
141 return Gauge(std::make_shared<detail::NullGaugeImpl>());
147 return Meter(std::make_shared<detail::NullMeterImpl>());
158 return std::make_shared<detail::NullCollectorImp>();
A metric for measuring an integral value.
A metric for reporting event timing.
A metric for measuring an integral value.
A reference to a handler for performing polled collection.
A metric for measuring an integral value.
A Collector which does not collect metrics.
static std::shared_ptr< Collector > New()
Event make_event(std::string const &) override
Create an event with the specified name.
Meter make_meter(std::string const &) override
Create a meter with the specified name.
Hook make_hook(HookImpl::HandlerType const &) override
Gauge make_gauge(std::string const &) override
Create a gauge with the specified name.
NullCollectorImp()=default
~NullCollectorImp()=default
Counter make_counter(std::string const &) override
Create a counter with the specified name.
NullCounterImpl()=default
NullCounterImpl & operator=(NullCounterImpl const &)
void increment(value_type) override
void notify(value_type const &) override
NullEventImpl & operator=(NullEventImpl const &)
void increment(difference_type) override
void set(value_type) override
NullGaugeImpl & operator=(NullGaugeImpl const &)
NullHookImpl & operator=(NullHookImpl const &)
void increment(value_type) override
NullMeterImpl & operator=(NullMeterImpl const &)