#include <EventConsumerMonitorCollection.h>
Public Member Functions | |
EventConsumerMonitorCollection (const utils::Duration_t &updateInterval) | |
Private Member Functions | |
virtual void | do_appendInfoSpaceItems (InfoSpaceItems &) |
virtual void | do_updateInfoSpaceItems () |
EventConsumerMonitorCollection (const EventConsumerMonitorCollection &) | |
EventConsumerMonitorCollection & | operator= (const EventConsumerMonitorCollection &) |
Private Attributes | |
xdata::UnsignedInteger32 | eventConsumers_ |
A collection of MonitoredQuantities to track event consumer activity.
Definition at line 22 of file EventConsumerMonitorCollection.h.
EventConsumerMonitorCollection::EventConsumerMonitorCollection | ( | const utils::Duration_t & | updateInterval | ) | [explicit] |
Definition at line 10 of file EventConsumerMonitorCollection.cc.
: ConsumerMonitorCollection(updateInterval, boost::posix_time::seconds(10)) {}
stor::EventConsumerMonitorCollection::EventConsumerMonitorCollection | ( | const EventConsumerMonitorCollection & | ) | [private] |
void EventConsumerMonitorCollection::do_appendInfoSpaceItems | ( | InfoSpaceItems & | infoSpaceItems | ) | [private, virtual] |
Reimplemented from stor::MonitorCollection.
Definition at line 15 of file EventConsumerMonitorCollection.cc.
References eventConsumers_.
{ infoSpaceItems.push_back(std::make_pair("eventConsumers", &eventConsumers_)); }
void EventConsumerMonitorCollection::do_updateInfoSpaceItems | ( | ) | [private, virtual] |
Reimplemented from stor::MonitorCollection.
Definition at line 21 of file EventConsumerMonitorCollection.cc.
References eventConsumers_, prof2calltree::l, stor::ConsumerMonitorCollection::mutex_, and stor::ConsumerMonitorCollection::smap_.
{ boost::mutex::scoped_lock l( mutex_ ); eventConsumers_ = smap_.size(); }
EventConsumerMonitorCollection& stor::EventConsumerMonitorCollection::operator= | ( | const EventConsumerMonitorCollection & | ) | [private] |
xdata::UnsignedInteger32 stor::EventConsumerMonitorCollection::eventConsumers_ [private] |
Definition at line 38 of file EventConsumerMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().