CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/EventFilter/StorageManager/src/EventConsumerMonitorCollection.cc

Go to the documentation of this file.
00001 // $Id: EventConsumerMonitorCollection.cc,v 1.3 2011/03/07 15:31:32 mommsen Exp $
00003 
00004 #include "EventFilter/StorageManager/interface/EventConsumerMonitorCollection.h"
00005 #include "EventFilter/StorageManager/interface/QueueID.h"
00006 
00007 using namespace stor;
00008 
00009 
00010 EventConsumerMonitorCollection::EventConsumerMonitorCollection(const utils::Duration_t& updateInterval):
00011 ConsumerMonitorCollection(updateInterval, boost::posix_time::seconds(10))
00012 {}
00013 
00014 
00015 void EventConsumerMonitorCollection::do_appendInfoSpaceItems(InfoSpaceItems& infoSpaceItems)
00016 {
00017   infoSpaceItems.push_back(std::make_pair("eventConsumers", &eventConsumers_));
00018 }
00019 
00020 
00021 void EventConsumerMonitorCollection::do_updateInfoSpaceItems()
00022 {
00023   boost::mutex::scoped_lock l( mutex_ );
00024   eventConsumers_ = smap_.size();
00025 }
00026 
00027 
00028