CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
stor::Configuration Class Reference

#include <Configuration.h>

Inheritance diagram for stor::Configuration:

Public Member Functions

virtual void actionPerformed (xdata::Event &isEvt)
 
 Configuration (xdata::InfoSpace *infoSpace, unsigned long instanceNumber)
 
struct AlarmParams getAlarmParams () const
 
ErrStrConfigListPtr getCurrentErrorStreamConfig () const
 
EvtStrConfigListPtr getCurrentEventStreamConfig () const
 
struct DiskWritingParams getDiskWritingParams () const
 
struct DQMProcessingParams getDQMProcessingParams () const
 
struct EventServingParams getEventServingParams () const
 
struct QueueConfigurationParams getQueueConfigurationParams () const
 
struct ResourceMonitorParams getResourceMonitorParams () const
 
unsigned int getRunNumber () const
 
struct WorkerThreadParams getWorkerThreadParams () const
 
void setCurrentErrorStreamConfig (ErrStrConfigListPtr cfgList)
 
void setCurrentEventStreamConfig (EvtStrConfigListPtr cfgList)
 
bool streamConfigurationHasChanged () const
 
void updateAllParams ()
 
void updateDiskWritingParams ()
 
void updateRunParams ()
 
virtual ~Configuration ()
 

Private Member Functions

void setAlarmDefaults ()
 
void setDiskWritingDefaults (unsigned long instanceNumber)
 
void setDQMProcessingDefaults ()
 
void setEventServingDefaults ()
 
void setQueueConfigurationDefaults ()
 
void setResourceMonitorDefaults ()
 
void setupAlarmInfoSpaceParams (xdata::InfoSpace *infoSpace)
 
void setupDiskWritingInfoSpaceParams (xdata::InfoSpace *infoSpace)
 
void setupDQMProcessingInfoSpaceParams (xdata::InfoSpace *infoSpace)
 
void setupEventServingInfoSpaceParams (xdata::InfoSpace *infoSpace)
 
void setupQueueConfigurationInfoSpaceParams (xdata::InfoSpace *infoSpace)
 
void setupResourceMonitorInfoSpaceParams (xdata::InfoSpace *infoSpace)
 
void setupWorkerThreadInfoSpaceParams (xdata::InfoSpace *infoSpace)
 
void setWorkerThreadDefaults ()
 
void updateLocalAlarmData ()
 
void updateLocalDiskWritingData ()
 
void updateLocalDQMProcessingData ()
 
void updateLocalEventServingData ()
 
void updateLocalQueueConfigurationData ()
 
void updateLocalResourceMonitorData ()
 
void updateLocalRunNumberData ()
 
void updateLocalWorkerThreadData ()
 

Private Attributes

xdata::Integer _DQMactiveConsumerTimeout
 
xdata::String _DQMconsumerQueuePolicy
 
xdata::Integer _DQMconsumerQueueSize
 
xdata::Integer activeConsumerTimeout_
 
struct AlarmParams alarmParamCopy_
 
xdata::Boolean careAboutUnwantedEvents_
 
xdata::Boolean checkAdler32_
 
xdata::Boolean collateDQM_
 
xdata::UnsignedInteger32 commandQueueSize_
 
xdata::Integer compressionLevelDQM_
 
xdata::String consumerQueuePolicy_
 
xdata::Integer consumerQueueSize_
 
xdata::String copyWorkersCommand_
 
xdata::String copyWorkersUser_
 
ErrStrConfigListPtr currentErrorStreamConfig_
 
EvtStrConfigListPtr currentEventStreamConfig_
 
xdata::String dbFilePath_
 
xdata::UnsignedInteger32 discardDQMUpdatesForOlderLS_
 
struct DiskWritingParams diskWriteParamCopy_
 
xdata::Double DQMEPdeqWaitTime_
 
xdata::UnsignedInteger32 dqmEventQueueMemoryLimitMB_
 
xdata::UnsignedInteger32 dqmEventQueueSize_
 
struct DQMProcessingParams dqmParamCopy_
 
xdata::Double DWdeqWaitTime_
 
xdata::UnsignedInteger32 errorEvents_
 
boost::mutex errStrCfgMutex_
 
struct EventServingParams eventServeParamCopy_
 
boost::mutex evtStrCfgMutex_
 
xdata::Double failHighWaterMark_
 
xdata::String faultyEventsStream_
 
xdata::Integer fileClosingTestInterval_
 
xdata::String fileName_
 
xdata::String filePath_
 
xdata::Double fileSizeTolerance_
 
xdata::Double FPdeqWaitTime_
 
xdata::UnsignedInteger32 fragmentQueueMemoryLimitMB_
 
xdata::UnsignedInteger32 fragmentQueueSize_
 
xdata::UnsignedInteger32 fragmentStoreMemoryLimitMB_
 
boost::mutex generalMutex_
 
xdata::Double highWaterMark_
 
xdata::UnsignedInteger32 infospaceRunNumber_
 
xdata::String injectWorkersCommand_
 
xdata::String injectWorkersUser_
 
xdata::Boolean isProductionSystem_
 
unsigned int localRunNumber_
 
xdata::Double lumiSectionTimeOut_
 
xdata::Integer maxFileSize_
 
xdata::Double monitoringSleepSec_
 
xdata::Integer nCopyWorkers_
 
xdata::Integer nInjectWorkers_
 
xdata::Integer nLogicalDisk_
 
xdata::Vector< xdata::String > otherDiskPaths_
 
std::string previousStreamCfg_
 
struct QueueConfigurationParams queueConfigParamCopy_
 
xdata::Integer readyTimeDQM_
 
xdata::UnsignedInteger32 registrationQueueSize_
 
struct ResourceMonitorParams resourceMonitorParamCopy_
 
xdata::String sataUser_
 
xdata::String setupLabel_
 
xdata::Double staleFragmentTimeOut_
 
xdata::String streamConfiguration_
 
bool streamConfigurationChanged_
 
xdata::UnsignedInteger32 streamQueueMemoryLimitMB_
 
xdata::UnsignedInteger32 streamQueueSize_
 
xdata::UnsignedInteger32 throuphputAveragingCycles_
 
xdata::UnsignedInteger32 unwantedEvents_
 
xdata::Boolean useCompressionDQM_
 
struct WorkerThreadParams workerThreadParamCopy_
 

Detailed Description

Class for managing configuration information from the infospace and providing local copies of that information that are updated only at requested times.

Author:
mommsen
Revision:
1.32
Date:
2012/06/08 10:20:33

Definition at line 169 of file Configuration.h.

Constructor & Destructor Documentation

stor::Configuration::Configuration ( xdata::InfoSpace *  infoSpace,
unsigned long  instanceNumber 
)

Constructs a Configuration instance for the specified infospace and application instance number.

Definition at line 19 of file Configuration.cc.

References setAlarmDefaults(), setDiskWritingDefaults(), setDQMProcessingDefaults(), setEventServingDefaults(), setQueueConfigurationDefaults(), setResourceMonitorDefaults(), setupAlarmInfoSpaceParams(), setupDiskWritingInfoSpaceParams(), setupDQMProcessingInfoSpaceParams(), setupEventServingInfoSpaceParams(), setupQueueConfigurationInfoSpaceParams(), setupResourceMonitorInfoSpaceParams(), setupWorkerThreadInfoSpaceParams(), and setWorkerThreadDefaults().

20  :
24  {
25  // default values are used to initialize infospace values,
26  // so they should be set first
27  setDiskWritingDefaults(instanceNumber);
34 
41  setupAlarmInfoSpaceParams(infoSpace);
42  }
void setupDiskWritingInfoSpaceParams(xdata::InfoSpace *infoSpace)
void setupEventServingInfoSpaceParams(xdata::InfoSpace *infoSpace)
xdata::UnsignedInteger32 infospaceRunNumber_
void setupWorkerThreadInfoSpaceParams(xdata::InfoSpace *infoSpace)
void setupResourceMonitorInfoSpaceParams(xdata::InfoSpace *infoSpace)
unsigned int localRunNumber_
void setQueueConfigurationDefaults()
void setupAlarmInfoSpaceParams(xdata::InfoSpace *infoSpace)
void setResourceMonitorDefaults()
void setupDQMProcessingInfoSpaceParams(xdata::InfoSpace *infoSpace)
void setupQueueConfigurationInfoSpaceParams(xdata::InfoSpace *infoSpace)
void setDiskWritingDefaults(unsigned long instanceNumber)
virtual stor::Configuration::~Configuration ( )
inlinevirtual

Destructor.

Definition at line 182 of file Configuration.h.

183  {
184  // should we detach from the infospace???
185  }

Member Function Documentation

void stor::Configuration::actionPerformed ( xdata::Event &  isEvt)
virtual

Gets invoked when a operation is performed on the infospace that we are interested in knowing about.

Definition at line 122 of file Configuration.cc.

References generalMutex_, evf::ParameterSetRetriever::getAsString(), previousStreamCfg_, streamConfiguration_, and streamConfigurationChanged_.

123  {
124  boost::mutex::scoped_lock sl(generalMutex_);
125 
126  if (ispaceEvent.type() == "ItemChangedEvent")
127  {
128  std::string item =
129  dynamic_cast<xdata::ItemChangedEvent&>(ispaceEvent).itemName();
130  if (item == "STparameterSet")
131  {
133  std::string tmpStreamConfiguration = smpset.getAsString();
134 
135  if (tmpStreamConfiguration != previousStreamCfg_)
136  {
138  previousStreamCfg_ = tmpStreamConfiguration;
139  }
140  }
141  }
142  }
std::string previousStreamCfg_
boost::mutex generalMutex_
xdata::String streamConfiguration_
struct AlarmParams stor::Configuration::getAlarmParams ( ) const

Returns a copy of the alarm parameters. These values will be current as of the most recent global update of the local cache from the infospace (see the updateAllParams() method).

Definition at line 80 of file Configuration.cc.

81  {
82  boost::mutex::scoped_lock sl(generalMutex_);
83  return alarmParamCopy_;
84  }
boost::mutex generalMutex_
struct AlarmParams alarmParamCopy_
ErrStrConfigListPtr stor::Configuration::getCurrentErrorStreamConfig ( ) const

Retrieves the current list of error stream configuration info objects.

Definition at line 162 of file Configuration.cc.

References currentErrorStreamConfig_, and errStrCfgMutex_.

163  {
164  boost::mutex::scoped_lock sl(errStrCfgMutex_);
166  }
boost::mutex errStrCfgMutex_
ErrStrConfigListPtr currentErrorStreamConfig_
EvtStrConfigListPtr stor::Configuration::getCurrentEventStreamConfig ( ) const

Retrieves the current list of event stream configuration info objects.

Definition at line 156 of file Configuration.cc.

References currentEventStreamConfig_, and evtStrCfgMutex_.

157  {
158  boost::mutex::scoped_lock sl(evtStrCfgMutex_);
160  }
boost::mutex evtStrCfgMutex_
EvtStrConfigListPtr currentEventStreamConfig_
struct DiskWritingParams stor::Configuration::getDiskWritingParams ( ) const

Returns a copy of the disk writing parameters. These values will be current as of the most recent global update of the local cache from the infospace (see the updateAllParams() method) or the most recent update of only the disk writing parameters (see the updateDiskWritingParams() method).

Definition at line 44 of file Configuration.cc.

45  {
46  boost::mutex::scoped_lock sl(generalMutex_);
47  return diskWriteParamCopy_;
48  }
boost::mutex generalMutex_
struct DiskWritingParams diskWriteParamCopy_
struct DQMProcessingParams stor::Configuration::getDQMProcessingParams ( ) const

Returns a copy of the DQM processing parameters. These values will be current as of the most recent global update of the local cache from the infospace (see the updateAllParams() method).

Definition at line 50 of file Configuration.cc.

51  {
52  boost::mutex::scoped_lock sl(generalMutex_);
53  return dqmParamCopy_;
54  }
boost::mutex generalMutex_
struct DQMProcessingParams dqmParamCopy_
struct EventServingParams stor::Configuration::getEventServingParams ( ) const

Returns a copy of the event serving parameters. These values will be current as of the most recent global update of the local cache from the infospace (see the updateAllParams() method).

Definition at line 56 of file Configuration.cc.

57  {
58  boost::mutex::scoped_lock sl(generalMutex_);
59  return eventServeParamCopy_;
60  }
struct EventServingParams eventServeParamCopy_
boost::mutex generalMutex_
struct QueueConfigurationParams stor::Configuration::getQueueConfigurationParams ( ) const

Returns a copy of the queue configuration parameters. These values will be current as of the most recent global update of the local cache from the infospace (see the updateAllParams() method).

Definition at line 62 of file Configuration.cc.

63  {
64  boost::mutex::scoped_lock sl(generalMutex_);
65  return queueConfigParamCopy_;
66  }
boost::mutex generalMutex_
struct QueueConfigurationParams queueConfigParamCopy_
struct ResourceMonitorParams stor::Configuration::getResourceMonitorParams ( ) const

Returns a copy of the resouce monitor parameters. These values will be current as of the most recent global update of the local cache from the infospace (see the updateAllParams() method).

Definition at line 74 of file Configuration.cc.

75  {
76  boost::mutex::scoped_lock sl(generalMutex_);
78  }
boost::mutex generalMutex_
struct ResourceMonitorParams resourceMonitorParamCopy_
unsigned int stor::Configuration::getRunNumber ( ) const

Get run number:

Definition at line 99 of file Configuration.cc.

References localRunNumber_.

100  {
101  return localRunNumber_;
102  }
unsigned int localRunNumber_
struct WorkerThreadParams stor::Configuration::getWorkerThreadParams ( ) const

Returns a copy of the worker thread parameters. These values will be current as of the most recent global update of the local cache from the infospace (see the updateAllParams() method).

Definition at line 68 of file Configuration.cc.

69  {
70  boost::mutex::scoped_lock sl(generalMutex_);
72  }
boost::mutex generalMutex_
struct WorkerThreadParams workerThreadParamCopy_
void stor::Configuration::setAlarmDefaults ( )
private
void stor::Configuration::setCurrentErrorStreamConfig ( ErrStrConfigListPtr  cfgList)

Sets the current list of error stream configuration info objects.

Definition at line 150 of file Configuration.cc.

References currentErrorStreamConfig_, and errStrCfgMutex_.

151  {
152  boost::mutex::scoped_lock sl(errStrCfgMutex_);
153  currentErrorStreamConfig_ = cfgList;
154  }
boost::mutex errStrCfgMutex_
ErrStrConfigListPtr currentErrorStreamConfig_
void stor::Configuration::setCurrentEventStreamConfig ( EvtStrConfigListPtr  cfgList)

Sets the current list of event stream configuration info objects.

Definition at line 144 of file Configuration.cc.

References currentEventStreamConfig_, and evtStrCfgMutex_.

145  {
146  boost::mutex::scoped_lock sl(evtStrCfgMutex_);
147  currentEventStreamConfig_ = cfgList;
148  }
boost::mutex evtStrCfgMutex_
EvtStrConfigListPtr currentEventStreamConfig_
void stor::Configuration::setDiskWritingDefaults ( unsigned long  instanceNumber)
private

Definition at line 168 of file Configuration.cc.

References stor::DiskWritingParams::checkAdler32_, stor::DiskWritingParams::dbFilePath_, diskWriteParamCopy_, stor::DiskWritingParams::failHighWaterMark_, stor::DiskWritingParams::faultyEventsStream_, stor::DiskWritingParams::fileClosingTestInterval_, stor::DiskWritingParams::fileName_, stor::DiskWritingParams::filePath_, stor::DiskWritingParams::fileSizeTolerance_, stor::DiskWritingParams::highWaterMark_, stor::DiskWritingParams::hostName_, stor::DiskWritingParams::initialSafetyLevel_, stor::DiskWritingParams::lumiSectionTimeOut_, stor::DiskWritingParams::maxFileSizeMB_, stor::DiskWritingParams::nLogicalDisk_, stor::DiskWritingParams::otherDiskPaths_, pos, previousStreamCfg_, seconds(), stor::DiskWritingParams::setupLabel_, stor::DiskWritingParams::smInstanceString_, and stor::DiskWritingParams::streamConfiguration_.

Referenced by Configuration().

169  {
171  diskWriteParamCopy_.fileName_ = "storageManager";
173  diskWriteParamCopy_.dbFilePath_ = ""; // use default filePath_+"/log"
185 
187 
188  std::ostringstream oss;
189  oss << instanceNumber;
191 
192  std::string tmpString(toolbox::net::getHostName());
193  // strip domainame
194  std::string::size_type pos = tmpString.find('.');
195  if (pos != std::string::npos) {
196  std::string basename = tmpString.substr(0,pos);
197  tmpString = basename;
198  }
199  diskWriteParamCopy_.hostName_ = tmpString;
200 
202  }
std::string previousStreamCfg_
utils::Duration_t lumiSectionTimeOut_
Definition: Configuration.h:41
double seconds()
OtherDiskPaths otherDiskPaths_
Definition: Configuration.h:48
std::string smInstanceString_
Definition: Configuration.h:51
uint16_t size_type
std::string faultyEventsStream_
Definition: Configuration.h:44
utils::Duration_t fileClosingTestInterval_
Definition: Configuration.h:42
std::string streamConfiguration_
Definition: Configuration.h:32
struct DiskWritingParams diskWriteParamCopy_
void stor::Configuration::setDQMProcessingDefaults ( )
private
void stor::Configuration::setEventServingDefaults ( )
private

Definition at line 213 of file Configuration.cc.

References stor::EventServingParams::_DQMactiveConsumerTimeout, stor::EventServingParams::_DQMconsumerQueuePolicy, stor::EventServingParams::_DQMconsumerQueueSize, stor::EventServingParams::activeConsumerTimeout_, stor::EventServingParams::consumerQueuePolicy_, stor::EventServingParams::consumerQueueSize_, eventServeParamCopy_, and seconds().

Referenced by Configuration().

void stor::Configuration::setQueueConfigurationDefaults ( )
private

Definition at line 223 of file Configuration.cc.

References stor::QueueConfigurationParams::commandQueueSize_, stor::QueueConfigurationParams::dqmEventQueueMemoryLimitMB_, stor::QueueConfigurationParams::dqmEventQueueSize_, stor::QueueConfigurationParams::fragmentQueueMemoryLimitMB_, stor::QueueConfigurationParams::fragmentQueueSize_, stor::QueueConfigurationParams::fragmentStoreMemoryLimitMB_, queueConfigParamCopy_, stor::QueueConfigurationParams::registrationQueueSize_, stor::QueueConfigurationParams::streamQueueMemoryLimitMB_, and stor::QueueConfigurationParams::streamQueueSize_.

Referenced by Configuration().

224  {
234  }
unsigned int dqmEventQueueMemoryLimitMB_
Definition: Configuration.h:91
unsigned int fragmentQueueMemoryLimitMB_
Definition: Configuration.h:93
unsigned int streamQueueMemoryLimitMB_
Definition: Configuration.h:96
unsigned int fragmentStoreMemoryLimitMB_
Definition: Configuration.h:97
struct QueueConfigurationParams queueConfigParamCopy_
void stor::Configuration::setResourceMonitorDefaults ( )
private

Definition at line 248 of file Configuration.cc.

References stor::ResourceMonitorParams::WorkerParams::command_, stor::ResourceMonitorParams::copyWorkers_, stor::ResourceMonitorParams::WorkerParams::expectedCount_, stor::ResourceMonitorParams::injectWorkers_, resourceMonitorParamCopy_, stor::ResourceMonitorParams::sataUser_, and stor::ResourceMonitorParams::WorkerParams::user_.

Referenced by Configuration().

void stor::Configuration::setupAlarmInfoSpaceParams ( xdata::InfoSpace *  infoSpace)
private

Definition at line 426 of file Configuration.cc.

References alarmParamCopy_, stor::AlarmParams::careAboutUnwantedEvents_, careAboutUnwantedEvents_, stor::AlarmParams::errorEvents_, errorEvents_, stor::AlarmParams::isProductionSystem_, isProductionSystem_, stor::AlarmParams::unwantedEvents_, and unwantedEvents_.

Referenced by Configuration().

427  {
428  // copy the initial defaults to the xdata variables
433 
434  // bind the local xdata variables to the infospace
435  infoSpace->fireItemAvailable("isProductionSystem", &isProductionSystem_);
436  infoSpace->fireItemAvailable("careAboutUnwantedEvents", &careAboutUnwantedEvents_);
437  infoSpace->fireItemAvailable("errorEvents", &errorEvents_);
438  infoSpace->fireItemAvailable("unwantedEvents", &unwantedEvents_);
439  }
xdata::Boolean isProductionSystem_
struct AlarmParams alarmParamCopy_
unsigned int unwantedEvents_
xdata::UnsignedInteger32 unwantedEvents_
xdata::UnsignedInteger32 errorEvents_
unsigned int errorEvents_
xdata::Boolean careAboutUnwantedEvents_
void stor::Configuration::setupDiskWritingInfoSpaceParams ( xdata::InfoSpace *  infoSpace)
private

Definition at line 270 of file Configuration.cc.

References stor::DiskWritingParams::checkAdler32_, checkAdler32_, stor::DiskWritingParams::dbFilePath_, dbFilePath_, diskWriteParamCopy_, stor::utils::durationToSeconds(), stor::DiskWritingParams::failHighWaterMark_, failHighWaterMark_, stor::DiskWritingParams::faultyEventsStream_, faultyEventsStream_, stor::DiskWritingParams::fileClosingTestInterval_, fileClosingTestInterval_, stor::DiskWritingParams::fileName_, fileName_, stor::DiskWritingParams::filePath_, filePath_, stor::DiskWritingParams::fileSizeTolerance_, fileSizeTolerance_, stor::utils::getXdataVector(), stor::DiskWritingParams::highWaterMark_, highWaterMark_, stor::DiskWritingParams::lumiSectionTimeOut_, lumiSectionTimeOut_, maxFileSize_, stor::DiskWritingParams::maxFileSizeMB_, stor::DiskWritingParams::nLogicalDisk_, nLogicalDisk_, stor::DiskWritingParams::otherDiskPaths_, otherDiskPaths_, stor::DiskWritingParams::setupLabel_, setupLabel_, stor::DiskWritingParams::streamConfiguration_, and streamConfiguration_.

Referenced by Configuration().

271  {
272  // copy the initial defaults into the xdata variables
287 
289 
290 
291  // bind the local xdata variables to the infospace
292  infoSpace->fireItemAvailable("STparameterSet", &streamConfiguration_);
293  infoSpace->fireItemAvailable("fileName", &fileName_);
294  infoSpace->fireItemAvailable("filePath", &filePath_);
295  infoSpace->fireItemAvailable("dbFilePath", &dbFilePath_);
296  infoSpace->fireItemAvailable("otherDiskPaths", &otherDiskPaths_);
297  infoSpace->fireItemAvailable("setupLabel", &setupLabel_);
298  infoSpace->fireItemAvailable("nLogicalDisk", &nLogicalDisk_);
299  infoSpace->fireItemAvailable("maxFileSize", &maxFileSize_);
300  infoSpace->fireItemAvailable("highWaterMark", &highWaterMark_);
301  infoSpace->fireItemAvailable("failHighWaterMark", &failHighWaterMark_);
302  infoSpace->fireItemAvailable("lumiSectionTimeOut", &lumiSectionTimeOut_);
303  infoSpace->fireItemAvailable("fileClosingTestInterval",
305  infoSpace->fireItemAvailable("fileSizeTolerance", &fileSizeTolerance_);
306  infoSpace->fireItemAvailable("faultyEventsStream", &faultyEventsStream_);
307  infoSpace->fireItemAvailable("checkAdler32", &checkAdler32_);
308 
309  // special handling for the stream configuration string (we
310  // want to note when it changes to see if we need to reconfigure
311  // between runs)
312  infoSpace->addItemChangedListener("STparameterSet", this);
313  }
xdata::Double fileSizeTolerance_
utils::Duration_t lumiSectionTimeOut_
Definition: Configuration.h:41
xdata::Integer nLogicalDisk_
xdata::Double lumiSectionTimeOut_
xdata::String fileName_
xdata::Double failHighWaterMark_
xdata::Integer maxFileSize_
xdata::Vector< xdata::String > otherDiskPaths_
OtherDiskPaths otherDiskPaths_
Definition: Configuration.h:48
xdata::Double highWaterMark_
xdata::String filePath_
xdata::String dbFilePath_
xdata::String faultyEventsStream_
std::string faultyEventsStream_
Definition: Configuration.h:44
void getXdataVector(const std::vector< std::string > &, xdata::Vector< xdata::String > &)
Definition: Utils.cc:119
utils::Duration_t fileClosingTestInterval_
Definition: Configuration.h:42
xdata::Boolean checkAdler32_
double durationToSeconds(Duration_t const &)
Definition: Utils.h:147
xdata::String streamConfiguration_
xdata::String setupLabel_
std::string streamConfiguration_
Definition: Configuration.h:32
xdata::Integer fileClosingTestInterval_
struct DiskWritingParams diskWriteParamCopy_
void stor::Configuration::setupDQMProcessingInfoSpaceParams ( xdata::InfoSpace *  infoSpace)
private

Definition at line 316 of file Configuration.cc.

References stor::DQMProcessingParams::collateDQM_, collateDQM_, stor::DQMProcessingParams::compressionLevelDQM_, compressionLevelDQM_, stor::DQMProcessingParams::discardDQMUpdatesForOlderLS_, discardDQMUpdatesForOlderLS_, dqmParamCopy_, stor::DQMProcessingParams::readyTimeDQM_, readyTimeDQM_, stor::DQMProcessingParams::useCompressionDQM_, and useCompressionDQM_.

Referenced by Configuration().

317  {
318  // copy the initial defaults to the xdata variables
320  readyTimeDQM_ = dqmParamCopy_.readyTimeDQM_.total_seconds();
324 
325  // bind the local xdata variables to the infospace
326  infoSpace->fireItemAvailable("collateDQM", &collateDQM_);
327  infoSpace->fireItemAvailable("readyTimeDQM", &readyTimeDQM_);
328  infoSpace->fireItemAvailable("useCompressionDQM", &useCompressionDQM_);
329  infoSpace->fireItemAvailable("compressionLevelDQM", &compressionLevelDQM_);
330  infoSpace->fireItemAvailable("discardDQMUpdatesForOlderLS", &discardDQMUpdatesForOlderLS_);
331  }
unsigned int discardDQMUpdatesForOlderLS_
Definition: Configuration.h:66
xdata::Integer compressionLevelDQM_
utils::Duration_t readyTimeDQM_
Definition: Configuration.h:63
xdata::Integer readyTimeDQM_
struct DQMProcessingParams dqmParamCopy_
xdata::Boolean collateDQM_
xdata::UnsignedInteger32 discardDQMUpdatesForOlderLS_
xdata::Boolean useCompressionDQM_
void stor::Configuration::setupEventServingInfoSpaceParams ( xdata::InfoSpace *  infoSpace)
private

Definition at line 334 of file Configuration.cc.

References stor::EventServingParams::_DQMactiveConsumerTimeout, _DQMactiveConsumerTimeout, stor::EventServingParams::_DQMconsumerQueuePolicy, _DQMconsumerQueuePolicy, stor::EventServingParams::_DQMconsumerQueueSize, _DQMconsumerQueueSize, stor::EventServingParams::activeConsumerTimeout_, activeConsumerTimeout_, stor::EventServingParams::consumerQueuePolicy_, consumerQueuePolicy_, stor::EventServingParams::consumerQueueSize_, consumerQueueSize_, eventServeParamCopy_, and infospaceRunNumber_.

Referenced by Configuration().

335  {
336  // copy the initial defaults to the xdata variables
343 
344  // bind the local xdata variables to the infospace
345  infoSpace->fireItemAvailable("runNumber", &infospaceRunNumber_);
346  infoSpace->fireItemAvailable("activeConsumerTimeout",
348  infoSpace->fireItemAvailable("consumerQueueSize",&consumerQueueSize_);
349  infoSpace->fireItemAvailable("consumerQueuePolicy",&consumerQueuePolicy_);
350  infoSpace->fireItemAvailable("DQMactiveConsumerTimeout",
352  infoSpace->fireItemAvailable("DQMconsumerQueueSize",
354  infoSpace->fireItemAvailable("DQMconsumerQueuePolicy",&_DQMconsumerQueuePolicy);
355  }
xdata::Integer _DQMactiveConsumerTimeout
xdata::UnsignedInteger32 infospaceRunNumber_
struct EventServingParams eventServeParamCopy_
xdata::Integer _DQMconsumerQueueSize
std::string consumerQueuePolicy_
Definition: Configuration.h:77
xdata::String consumerQueuePolicy_
std::string _DQMconsumerQueuePolicy
Definition: Configuration.h:80
utils::Duration_t activeConsumerTimeout_
Definition: Configuration.h:75
utils::Duration_t _DQMactiveConsumerTimeout
Definition: Configuration.h:78
xdata::String _DQMconsumerQueuePolicy
xdata::Integer activeConsumerTimeout_
xdata::Integer consumerQueueSize_
void stor::Configuration::setupQueueConfigurationInfoSpaceParams ( xdata::InfoSpace *  infoSpace)
private

Definition at line 358 of file Configuration.cc.

References stor::QueueConfigurationParams::commandQueueSize_, commandQueueSize_, stor::QueueConfigurationParams::dqmEventQueueMemoryLimitMB_, dqmEventQueueMemoryLimitMB_, stor::QueueConfigurationParams::dqmEventQueueSize_, dqmEventQueueSize_, stor::QueueConfigurationParams::fragmentQueueMemoryLimitMB_, fragmentQueueMemoryLimitMB_, stor::QueueConfigurationParams::fragmentQueueSize_, fragmentQueueSize_, stor::QueueConfigurationParams::fragmentStoreMemoryLimitMB_, fragmentStoreMemoryLimitMB_, queueConfigParamCopy_, stor::QueueConfigurationParams::registrationQueueSize_, registrationQueueSize_, stor::QueueConfigurationParams::streamQueueMemoryLimitMB_, streamQueueMemoryLimitMB_, stor::QueueConfigurationParams::streamQueueSize_, and streamQueueSize_.

Referenced by Configuration().

359  {
360  // copy the initial defaults to the xdata variables
370 
371  // bind the local xdata variables to the infospace
372  infoSpace->fireItemAvailable("commandQueueSize", &commandQueueSize_);
373  infoSpace->fireItemAvailable("dqmEventQueueSize", &dqmEventQueueSize_);
374  infoSpace->fireItemAvailable("dqmEventQueueMemoryLimitMB", &dqmEventQueueMemoryLimitMB_);
375  infoSpace->fireItemAvailable("fragmentQueueSize", &fragmentQueueSize_);
376  infoSpace->fireItemAvailable("fragmentQueueMemoryLimitMB", &fragmentQueueMemoryLimitMB_);
377  infoSpace->fireItemAvailable("registrationQueueSize", &registrationQueueSize_);
378  infoSpace->fireItemAvailable("streamQueueSize", &streamQueueSize_);
379  infoSpace->fireItemAvailable("streamQueueMemoryLimitMB", &streamQueueMemoryLimitMB_);
380  infoSpace->fireItemAvailable("fragmentStoreMemoryLimitMB", &fragmentStoreMemoryLimitMB_);
381  }
xdata::UnsignedInteger32 streamQueueSize_
unsigned int dqmEventQueueMemoryLimitMB_
Definition: Configuration.h:91
unsigned int fragmentQueueMemoryLimitMB_
Definition: Configuration.h:93
xdata::UnsignedInteger32 dqmEventQueueSize_
xdata::UnsignedInteger32 registrationQueueSize_
unsigned int streamQueueMemoryLimitMB_
Definition: Configuration.h:96
xdata::UnsignedInteger32 fragmentQueueSize_
unsigned int fragmentStoreMemoryLimitMB_
Definition: Configuration.h:97
xdata::UnsignedInteger32 fragmentStoreMemoryLimitMB_
xdata::UnsignedInteger32 fragmentQueueMemoryLimitMB_
xdata::UnsignedInteger32 commandQueueSize_
xdata::UnsignedInteger32 streamQueueMemoryLimitMB_
xdata::UnsignedInteger32 dqmEventQueueMemoryLimitMB_
struct QueueConfigurationParams queueConfigParamCopy_
void stor::Configuration::setupResourceMonitorInfoSpaceParams ( xdata::InfoSpace *  infoSpace)
private

Definition at line 404 of file Configuration.cc.

References stor::ResourceMonitorParams::WorkerParams::command_, stor::ResourceMonitorParams::copyWorkers_, copyWorkersCommand_, copyWorkersUser_, stor::ResourceMonitorParams::WorkerParams::expectedCount_, stor::ResourceMonitorParams::injectWorkers_, injectWorkersCommand_, injectWorkersUser_, nCopyWorkers_, nInjectWorkers_, resourceMonitorParamCopy_, stor::ResourceMonitorParams::sataUser_, sataUser_, and stor::ResourceMonitorParams::WorkerParams::user_.

Referenced by Configuration().

405  {
406  // copy the initial defaults to the xdata variables
414 
415  // bind the local xdata variables to the infospace
416  infoSpace->fireItemAvailable("sataUser", &sataUser_);
417  infoSpace->fireItemAvailable("injectWorkersUser", &injectWorkersUser_);
418  infoSpace->fireItemAvailable("injectWorkersCommand", &injectWorkersCommand_);
419  infoSpace->fireItemAvailable("nInjectWorkers", &nInjectWorkers_);
420  infoSpace->fireItemAvailable("copyWorkersUser", &copyWorkersUser_);
421  infoSpace->fireItemAvailable("copyWorkersCommand", &copyWorkersCommand_);
422  infoSpace->fireItemAvailable("nCopyWorkers", &nCopyWorkers_);
423  }
xdata::String copyWorkersUser_
xdata::Integer nInjectWorkers_
xdata::Integer nCopyWorkers_
xdata::String sataUser_
xdata::String copyWorkersCommand_
xdata::String injectWorkersCommand_
struct ResourceMonitorParams resourceMonitorParamCopy_
xdata::String injectWorkersUser_
void stor::Configuration::setupWorkerThreadInfoSpaceParams ( xdata::InfoSpace *  infoSpace)
private

Definition at line 384 of file Configuration.cc.

References stor::WorkerThreadParams::DQMEPdeqWaitTime_, DQMEPdeqWaitTime_, stor::utils::durationToSeconds(), stor::WorkerThreadParams::DWdeqWaitTime_, DWdeqWaitTime_, stor::WorkerThreadParams::FPdeqWaitTime_, FPdeqWaitTime_, stor::WorkerThreadParams::monitoringSleepSec_, monitoringSleepSec_, stor::WorkerThreadParams::staleFragmentTimeOut_, staleFragmentTimeOut_, stor::WorkerThreadParams::throuphputAveragingCycles_, throuphputAveragingCycles_, and workerThreadParamCopy_.

Referenced by Configuration().

385  {
386  // copy the initial defaults to the xdata variables
393 
394  // bind the local xdata variables to the infospace
395  infoSpace->fireItemAvailable("FPdeqWaitTime", &FPdeqWaitTime_);
396  infoSpace->fireItemAvailable("DWdeqWaitTime", &DWdeqWaitTime_);
397  infoSpace->fireItemAvailable("DQMEPdeqWaitTime", &DQMEPdeqWaitTime_);
398  infoSpace->fireItemAvailable("staleFragmentTimeOut", &staleFragmentTimeOut_);
399  infoSpace->fireItemAvailable("monitoringSleepSec", &monitoringSleepSec_);
400  infoSpace->fireItemAvailable("throuphputAveragingCycles", &throuphputAveragingCycles_);
401  }
xdata::Double monitoringSleepSec_
xdata::UnsignedInteger32 throuphputAveragingCycles_
xdata::Double DQMEPdeqWaitTime_
xdata::Double FPdeqWaitTime_
utils::Duration_t monitoringSleepSec_
unsigned int throuphputAveragingCycles_
xdata::Double staleFragmentTimeOut_
struct WorkerThreadParams workerThreadParamCopy_
boost::posix_time::time_duration DQMEPdeqWaitTime_
utils::Duration_t staleFragmentTimeOut_
boost::posix_time::time_duration FPdeqWaitTime_
boost::posix_time::time_duration DWdeqWaitTime_
double durationToSeconds(Duration_t const &)
Definition: Utils.h:147
xdata::Double DWdeqWaitTime_
void stor::Configuration::setWorkerThreadDefaults ( )
private

Definition at line 236 of file Configuration.cc.

References stor::WorkerThreadParams::DQMEPdeqWaitTime_, stor::WorkerThreadParams::DWdeqWaitTime_, stor::WorkerThreadParams::FPdeqWaitTime_, stor::WorkerThreadParams::monitoringSleepSec_, seconds(), stor::WorkerThreadParams::staleFragmentTimeOut_, stor::WorkerThreadParams::throuphputAveragingCycles_, and workerThreadParamCopy_.

Referenced by Configuration().

237  {
238  // set defaults
239  workerThreadParamCopy_.FPdeqWaitTime_ = boost::posix_time::millisec(250);
240  workerThreadParamCopy_.DWdeqWaitTime_ = boost::posix_time::millisec(500);
241  workerThreadParamCopy_.DQMEPdeqWaitTime_ = boost::posix_time::millisec(500);
242 
246  }
double seconds()
utils::Duration_t monitoringSleepSec_
unsigned int throuphputAveragingCycles_
struct WorkerThreadParams workerThreadParamCopy_
boost::posix_time::time_duration DQMEPdeqWaitTime_
utils::Duration_t staleFragmentTimeOut_
boost::posix_time::time_duration FPdeqWaitTime_
boost::posix_time::time_duration DWdeqWaitTime_
bool stor::Configuration::streamConfigurationHasChanged ( ) const

Tests whether the stream configuration string has changed in the infospace. Returns true if it has changed, false if not.

Definition at line 116 of file Configuration.cc.

References generalMutex_, and streamConfigurationChanged_.

117  {
118  boost::mutex::scoped_lock sl(generalMutex_);
120  }
boost::mutex generalMutex_
void stor::Configuration::updateAllParams ( )

Updates the local copy of all configuration parameters from the infospace.

Definition at line 86 of file Configuration.cc.

References generalMutex_, updateLocalAlarmData(), updateLocalDiskWritingData(), updateLocalDQMProcessingData(), updateLocalEventServingData(), updateLocalQueueConfigurationData(), updateLocalResourceMonitorData(), updateLocalRunNumberData(), and updateLocalWorkerThreadData().

void stor::Configuration::updateDiskWritingParams ( )

Updates the local copy of the disk writing configuration parameters from the infospace.

Definition at line 104 of file Configuration.cc.

References generalMutex_, and updateLocalDiskWritingData().

105  {
106  boost::mutex::scoped_lock sl(generalMutex_);
108  }
void updateLocalDiskWritingData()
boost::mutex generalMutex_
void stor::Configuration::updateLocalAlarmData ( )
private

Definition at line 537 of file Configuration.cc.

References alarmParamCopy_, stor::AlarmParams::careAboutUnwantedEvents_, careAboutUnwantedEvents_, stor::AlarmParams::errorEvents_, errorEvents_, stor::AlarmParams::isProductionSystem_, isProductionSystem_, stor::AlarmParams::unwantedEvents_, and unwantedEvents_.

Referenced by updateAllParams().

538  {
543  }
xdata::Boolean isProductionSystem_
struct AlarmParams alarmParamCopy_
unsigned int unwantedEvents_
xdata::UnsignedInteger32 unwantedEvents_
xdata::UnsignedInteger32 errorEvents_
unsigned int errorEvents_
xdata::Boolean careAboutUnwantedEvents_
void stor::Configuration::updateLocalDiskWritingData ( )
private

Definition at line 441 of file Configuration.cc.

References stor::DiskWritingParams::checkAdler32_, checkAdler32_, stor::DiskWritingParams::dbFilePath_, dbFilePath_, diskWriteParamCopy_, stor::DiskWritingParams::failHighWaterMark_, failHighWaterMark_, stor::DiskWritingParams::faultyEventsStream_, faultyEventsStream_, stor::DiskWritingParams::fileClosingTestInterval_, fileClosingTestInterval_, stor::DiskWritingParams::fileName_, fileName_, stor::DiskWritingParams::filePath_, filePath_, stor::DiskWritingParams::fileSizeTolerance_, fileSizeTolerance_, evf::ParameterSetRetriever::getAsString(), stor::utils::getStdVector(), stor::DiskWritingParams::highWaterMark_, highWaterMark_, stor::DiskWritingParams::lumiSectionTimeOut_, lumiSectionTimeOut_, maxFileSize_, stor::DiskWritingParams::maxFileSizeMB_, stor::DiskWritingParams::nLogicalDisk_, nLogicalDisk_, stor::DiskWritingParams::otherDiskPaths_, otherDiskPaths_, seconds(), stor::utils::secondsToDuration(), stor::DiskWritingParams::setupLabel_, setupLabel_, stor::DiskWritingParams::streamConfiguration_, streamConfiguration_, and streamConfigurationChanged_.

Referenced by updateAllParams(), and updateDiskWritingParams().

442  {
444  diskWriteParamCopy_.streamConfiguration_ = smpset.getAsString();
445 
448  if ( dbFilePath_.value_.empty() )
449  diskWriteParamCopy_.dbFilePath_ = filePath_.value_ + "/log";
450  else
463 
465 
466 
468  }
xdata::Double fileSizeTolerance_
utils::Duration_t lumiSectionTimeOut_
Definition: Configuration.h:41
double seconds()
xdata::Integer nLogicalDisk_
xdata::Double lumiSectionTimeOut_
xdata::String fileName_
Duration_t secondsToDuration(double const &seconds)
Definition: Utils.h:140
xdata::Double failHighWaterMark_
xdata::Integer maxFileSize_
xdata::Vector< xdata::String > otherDiskPaths_
OtherDiskPaths otherDiskPaths_
Definition: Configuration.h:48
xdata::Double highWaterMark_
xdata::String filePath_
void getStdVector(xdata::Vector< xdata::String > &, std::vector< std::string > &)
Definition: Utils.cc:105
xdata::String dbFilePath_
xdata::String faultyEventsStream_
std::string faultyEventsStream_
Definition: Configuration.h:44
utils::Duration_t fileClosingTestInterval_
Definition: Configuration.h:42
xdata::Boolean checkAdler32_
xdata::String streamConfiguration_
xdata::String setupLabel_
std::string streamConfiguration_
Definition: Configuration.h:32
xdata::Integer fileClosingTestInterval_
struct DiskWritingParams diskWriteParamCopy_
void stor::Configuration::updateLocalDQMProcessingData ( )
private

Definition at line 470 of file Configuration.cc.

References stor::DQMProcessingParams::collateDQM_, collateDQM_, stor::DQMProcessingParams::compressionLevelDQM_, compressionLevelDQM_, stor::DQMProcessingParams::discardDQMUpdatesForOlderLS_, discardDQMUpdatesForOlderLS_, dqmParamCopy_, stor::DQMProcessingParams::readyTimeDQM_, readyTimeDQM_, seconds(), stor::DQMProcessingParams::useCompressionDQM_, and useCompressionDQM_.

Referenced by updateAllParams().

471  {
474  boost::posix_time::seconds( static_cast<int>(readyTimeDQM_) );
478  }
double seconds()
unsigned int discardDQMUpdatesForOlderLS_
Definition: Configuration.h:66
xdata::Integer compressionLevelDQM_
utils::Duration_t readyTimeDQM_
Definition: Configuration.h:63
xdata::Integer readyTimeDQM_
struct DQMProcessingParams dqmParamCopy_
xdata::Boolean collateDQM_
xdata::UnsignedInteger32 discardDQMUpdatesForOlderLS_
xdata::Boolean useCompressionDQM_
void stor::Configuration::updateLocalEventServingData ( )
private

Definition at line 480 of file Configuration.cc.

References stor::EventServingParams::_DQMactiveConsumerTimeout, _DQMactiveConsumerTimeout, stor::EventServingParams::_DQMconsumerQueuePolicy, _DQMconsumerQueuePolicy, stor::EventServingParams::_DQMconsumerQueueSize, _DQMconsumerQueueSize, stor::EventServingParams::activeConsumerTimeout_, activeConsumerTimeout_, stor::EventServingParams::consumerQueuePolicy_, consumerQueuePolicy_, stor::EventServingParams::consumerQueueSize_, consumerQueueSize_, eventServeParamCopy_, and seconds().

Referenced by updateAllParams().

481  {
490 
491  // validation
493  {
495  }
497  {
499  }
500  }
double seconds()
xdata::Integer _DQMactiveConsumerTimeout
struct EventServingParams eventServeParamCopy_
xdata::Integer _DQMconsumerQueueSize
std::string consumerQueuePolicy_
Definition: Configuration.h:77
xdata::String consumerQueuePolicy_
std::string _DQMconsumerQueuePolicy
Definition: Configuration.h:80
utils::Duration_t activeConsumerTimeout_
Definition: Configuration.h:75
utils::Duration_t _DQMactiveConsumerTimeout
Definition: Configuration.h:78
xdata::String _DQMconsumerQueuePolicy
xdata::Integer activeConsumerTimeout_
xdata::Integer consumerQueueSize_
void stor::Configuration::updateLocalQueueConfigurationData ( )
private

Definition at line 502 of file Configuration.cc.

References stor::QueueConfigurationParams::commandQueueSize_, commandQueueSize_, stor::QueueConfigurationParams::dqmEventQueueMemoryLimitMB_, dqmEventQueueMemoryLimitMB_, stor::QueueConfigurationParams::dqmEventQueueSize_, dqmEventQueueSize_, stor::QueueConfigurationParams::fragmentQueueMemoryLimitMB_, fragmentQueueMemoryLimitMB_, stor::QueueConfigurationParams::fragmentQueueSize_, fragmentQueueSize_, stor::QueueConfigurationParams::fragmentStoreMemoryLimitMB_, fragmentStoreMemoryLimitMB_, queueConfigParamCopy_, stor::QueueConfigurationParams::registrationQueueSize_, registrationQueueSize_, stor::QueueConfigurationParams::streamQueueMemoryLimitMB_, streamQueueMemoryLimitMB_, stor::QueueConfigurationParams::streamQueueSize_, and streamQueueSize_.

Referenced by updateAllParams().

503  {
513  }
xdata::UnsignedInteger32 streamQueueSize_
unsigned int dqmEventQueueMemoryLimitMB_
Definition: Configuration.h:91
unsigned int fragmentQueueMemoryLimitMB_
Definition: Configuration.h:93
xdata::UnsignedInteger32 dqmEventQueueSize_
xdata::UnsignedInteger32 registrationQueueSize_
unsigned int streamQueueMemoryLimitMB_
Definition: Configuration.h:96
xdata::UnsignedInteger32 fragmentQueueSize_
unsigned int fragmentStoreMemoryLimitMB_
Definition: Configuration.h:97
xdata::UnsignedInteger32 fragmentStoreMemoryLimitMB_
xdata::UnsignedInteger32 fragmentQueueMemoryLimitMB_
xdata::UnsignedInteger32 commandQueueSize_
xdata::UnsignedInteger32 streamQueueMemoryLimitMB_
xdata::UnsignedInteger32 dqmEventQueueMemoryLimitMB_
struct QueueConfigurationParams queueConfigParamCopy_
void stor::Configuration::updateLocalResourceMonitorData ( )
private

Definition at line 526 of file Configuration.cc.

References stor::ResourceMonitorParams::WorkerParams::command_, stor::ResourceMonitorParams::copyWorkers_, copyWorkersCommand_, copyWorkersUser_, stor::ResourceMonitorParams::WorkerParams::expectedCount_, stor::ResourceMonitorParams::injectWorkers_, injectWorkersCommand_, injectWorkersUser_, nCopyWorkers_, nInjectWorkers_, resourceMonitorParamCopy_, stor::ResourceMonitorParams::sataUser_, sataUser_, and stor::ResourceMonitorParams::WorkerParams::user_.

Referenced by updateAllParams().

527  {
535  }
xdata::String copyWorkersUser_
xdata::Integer nInjectWorkers_
xdata::Integer nCopyWorkers_
xdata::String sataUser_
xdata::String copyWorkersCommand_
xdata::String injectWorkersCommand_
struct ResourceMonitorParams resourceMonitorParamCopy_
xdata::String injectWorkersUser_
void stor::Configuration::updateLocalRunNumberData ( )
private

Definition at line 545 of file Configuration.cc.

References infospaceRunNumber_, and localRunNumber_.

Referenced by updateAllParams(), and updateRunParams().

546  {
548  }
xdata::UnsignedInteger32 infospaceRunNumber_
unsigned int localRunNumber_
void stor::Configuration::updateLocalWorkerThreadData ( )
private

Definition at line 515 of file Configuration.cc.

References stor::WorkerThreadParams::DQMEPdeqWaitTime_, DQMEPdeqWaitTime_, stor::WorkerThreadParams::DWdeqWaitTime_, DWdeqWaitTime_, stor::WorkerThreadParams::FPdeqWaitTime_, FPdeqWaitTime_, stor::WorkerThreadParams::monitoringSleepSec_, monitoringSleepSec_, stor::utils::secondsToDuration(), stor::WorkerThreadParams::staleFragmentTimeOut_, staleFragmentTimeOut_, stor::WorkerThreadParams::throuphputAveragingCycles_, throuphputAveragingCycles_, and workerThreadParamCopy_.

Referenced by updateAllParams().

516  {
520 
524  }
xdata::Double monitoringSleepSec_
xdata::UnsignedInteger32 throuphputAveragingCycles_
xdata::Double DQMEPdeqWaitTime_
Duration_t secondsToDuration(double const &seconds)
Definition: Utils.h:140
xdata::Double FPdeqWaitTime_
utils::Duration_t monitoringSleepSec_
unsigned int throuphputAveragingCycles_
xdata::Double staleFragmentTimeOut_
struct WorkerThreadParams workerThreadParamCopy_
boost::posix_time::time_duration DQMEPdeqWaitTime_
utils::Duration_t staleFragmentTimeOut_
boost::posix_time::time_duration FPdeqWaitTime_
boost::posix_time::time_duration DWdeqWaitTime_
xdata::Double DWdeqWaitTime_
void stor::Configuration::updateRunParams ( )

Updates the local copy of run-based configuration parameter from the infospace.

Definition at line 110 of file Configuration.cc.

References generalMutex_, and updateLocalRunNumberData().

111  {
112  boost::mutex::scoped_lock sl(generalMutex_);
114  }
boost::mutex generalMutex_

Member Data Documentation

xdata::Integer stor::Configuration::_DQMactiveConsumerTimeout
private
xdata::String stor::Configuration::_DQMconsumerQueuePolicy
private
xdata::Integer stor::Configuration::_DQMconsumerQueueSize
private
xdata::Integer stor::Configuration::activeConsumerTimeout_
private
struct AlarmParams stor::Configuration::alarmParamCopy_
private
xdata::Boolean stor::Configuration::careAboutUnwantedEvents_
private

Definition at line 395 of file Configuration.h.

Referenced by setupAlarmInfoSpaceParams(), and updateLocalAlarmData().

xdata::Boolean stor::Configuration::checkAdler32_
private

Definition at line 354 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Boolean stor::Configuration::collateDQM_
private
xdata::UnsignedInteger32 stor::Configuration::commandQueueSize_
private
xdata::Integer stor::Configuration::compressionLevelDQM_
private
xdata::String stor::Configuration::consumerQueuePolicy_
private
xdata::Integer stor::Configuration::consumerQueueSize_
private
xdata::String stor::Configuration::copyWorkersCommand_
private
xdata::String stor::Configuration::copyWorkersUser_
private
ErrStrConfigListPtr stor::Configuration::currentErrorStreamConfig_
private

Definition at line 403 of file Configuration.h.

Referenced by getCurrentErrorStreamConfig(), and setCurrentErrorStreamConfig().

EvtStrConfigListPtr stor::Configuration::currentEventStreamConfig_
private

Definition at line 402 of file Configuration.h.

Referenced by getCurrentEventStreamConfig(), and setCurrentEventStreamConfig().

xdata::String stor::Configuration::dbFilePath_
private

Definition at line 343 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::UnsignedInteger32 stor::Configuration::discardDQMUpdatesForOlderLS_
private
struct DiskWritingParams stor::Configuration::diskWriteParamCopy_
private
xdata::Double stor::Configuration::DQMEPdeqWaitTime_
private
xdata::UnsignedInteger32 stor::Configuration::dqmEventQueueMemoryLimitMB_
private
xdata::UnsignedInteger32 stor::Configuration::dqmEventQueueSize_
private
struct DQMProcessingParams stor::Configuration::dqmParamCopy_
private
xdata::Double stor::Configuration::DWdeqWaitTime_
private
xdata::UnsignedInteger32 stor::Configuration::errorEvents_
private

Definition at line 396 of file Configuration.h.

Referenced by setupAlarmInfoSpaceParams(), and updateLocalAlarmData().

boost::mutex stor::Configuration::errStrCfgMutex_
mutableprivate

Definition at line 400 of file Configuration.h.

Referenced by getCurrentErrorStreamConfig(), and setCurrentErrorStreamConfig().

struct EventServingParams stor::Configuration::eventServeParamCopy_
private
boost::mutex stor::Configuration::evtStrCfgMutex_
mutableprivate

Definition at line 399 of file Configuration.h.

Referenced by getCurrentEventStreamConfig(), and setCurrentEventStreamConfig().

xdata::Double stor::Configuration::failHighWaterMark_
private

Definition at line 349 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::String stor::Configuration::faultyEventsStream_
private

Definition at line 353 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Integer stor::Configuration::fileClosingTestInterval_
private

Definition at line 351 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::String stor::Configuration::fileName_
private

Definition at line 341 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::String stor::Configuration::filePath_
private

Definition at line 342 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Double stor::Configuration::fileSizeTolerance_
private

Definition at line 352 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Double stor::Configuration::FPdeqWaitTime_
private
xdata::UnsignedInteger32 stor::Configuration::fragmentQueueMemoryLimitMB_
private
xdata::UnsignedInteger32 stor::Configuration::fragmentQueueSize_
private
xdata::UnsignedInteger32 stor::Configuration::fragmentStoreMemoryLimitMB_
private
boost::mutex stor::Configuration::generalMutex_
mutableprivate
xdata::Double stor::Configuration::highWaterMark_
private

Definition at line 348 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::UnsignedInteger32 stor::Configuration::infospaceRunNumber_
private

Definition at line 337 of file Configuration.h.

Referenced by setupEventServingInfoSpaceParams(), and updateLocalRunNumberData().

xdata::String stor::Configuration::injectWorkersCommand_
private
xdata::String stor::Configuration::injectWorkersUser_
private
xdata::Boolean stor::Configuration::isProductionSystem_
private

Definition at line 394 of file Configuration.h.

Referenced by setupAlarmInfoSpaceParams(), and updateLocalAlarmData().

unsigned int stor::Configuration::localRunNumber_
private

Definition at line 338 of file Configuration.h.

Referenced by getRunNumber(), and updateLocalRunNumberData().

xdata::Double stor::Configuration::lumiSectionTimeOut_
private

Definition at line 350 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Integer stor::Configuration::maxFileSize_
private

Definition at line 347 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Double stor::Configuration::monitoringSleepSec_
private
xdata::Integer stor::Configuration::nCopyWorkers_
private
xdata::Integer stor::Configuration::nInjectWorkers_
private
xdata::Integer stor::Configuration::nLogicalDisk_
private

Definition at line 346 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Vector<xdata::String> stor::Configuration::otherDiskPaths_
private

Definition at line 344 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

std::string stor::Configuration::previousStreamCfg_
private

Definition at line 334 of file Configuration.h.

Referenced by actionPerformed(), and setDiskWritingDefaults().

struct QueueConfigurationParams stor::Configuration::queueConfigParamCopy_
private
xdata::Integer stor::Configuration::readyTimeDQM_
private
xdata::UnsignedInteger32 stor::Configuration::registrationQueueSize_
private
struct ResourceMonitorParams stor::Configuration::resourceMonitorParamCopy_
private
xdata::String stor::Configuration::sataUser_
private
xdata::String stor::Configuration::setupLabel_
private

Definition at line 345 of file Configuration.h.

Referenced by setupDiskWritingInfoSpaceParams(), and updateLocalDiskWritingData().

xdata::Double stor::Configuration::staleFragmentTimeOut_
private
xdata::String stor::Configuration::streamConfiguration_
private
bool stor::Configuration::streamConfigurationChanged_
private
xdata::UnsignedInteger32 stor::Configuration::streamQueueMemoryLimitMB_
private
xdata::UnsignedInteger32 stor::Configuration::streamQueueSize_
private
xdata::UnsignedInteger32 stor::Configuration::throuphputAveragingCycles_
private
xdata::UnsignedInteger32 stor::Configuration::unwantedEvents_
private

Definition at line 397 of file Configuration.h.

Referenced by setupAlarmInfoSpaceParams(), and updateLocalAlarmData().

xdata::Boolean stor::Configuration::useCompressionDQM_
private
struct WorkerThreadParams stor::Configuration::workerThreadParamCopy_
private