#include <Configuration.h>
Public Member Functions | |
virtual void | actionPerformed (xdata::Event &isEvt) |
Configuration (xdata::InfoSpace *infoSpace, unsigned long instanceNumber) | |
struct AlarmParams | getAlarmParams () const |
struct DataRetrieverParams | getDataRetrieverParams () const |
struct DQMArchivingParams | getDQMArchivingParams () const |
struct stor::DQMProcessingParams | getDQMProcessingParams () const |
struct stor::EventServingParams | getEventServingParams () const |
struct QueueConfigurationParams | getQueueConfigurationParams () const |
void | updateAllParams () |
virtual | ~Configuration () |
Private Member Functions | |
void | setAlarmDefaults () |
void | setDataRetrieverDefaults (unsigned long instanceNumber) |
void | setDQMArchivingDefaults () |
void | setDQMProcessingDefaults () |
void | setEventServingDefaults () |
void | setQueueConfigurationDefaults () |
void | setupAlarmInfoSpaceParams (xdata::InfoSpace *infoSpace) |
void | setupDataRetrieverInfoSpaceParams (xdata::InfoSpace *) |
void | setupDQMArchivingInfoSpaceParams (xdata::InfoSpace *) |
void | setupDQMProcessingInfoSpaceParams (xdata::InfoSpace *) |
void | setupEventServingInfoSpaceParams (xdata::InfoSpace *) |
void | setupQueueConfigurationInfoSpaceParams (xdata::InfoSpace *) |
void | updateLocalAlarmData () |
void | updateLocalDataRetrieverData () |
void | updateLocalDQMArchivingData () |
void | updateLocalDQMProcessingData () |
void | updateLocalEventServingData () |
void | updateLocalQueueConfigurationData () |
Class for managing configuration information from the infospace and providing local copies of that information that are updated only at requested times.
Definition at line 90 of file Configuration.h.
smproxy::Configuration::Configuration | ( | xdata::InfoSpace * | infoSpace, |
unsigned long | instanceNumber | ||
) |
Constructs a Configuration instance for the specified infospace and application instance number.
Definition at line 14 of file Configuration.cc.
|
inlinevirtual |
Destructor.
Definition at line 103 of file Configuration.h.
|
virtual |
Gets invoked when a operation is performed on the infospace that we are interested in knowing about.
Definition at line 307 of file Configuration.cc.
References generalMutex_.
struct AlarmParams smproxy::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 66 of file Configuration.cc.
struct DataRetrieverParams smproxy::Configuration::getDataRetrieverParams | ( | ) | const |
Returns a copy of the event retriever 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 event retrieved parameters (see the updateDataRetrieverParams() method).
Definition at line 36 of file Configuration.cc.
struct DQMArchivingParams smproxy::Configuration::getDQMArchivingParams | ( | ) | const |
Returns a copy of the DQM archiving 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 54 of file Configuration.cc.
struct stor::DQMProcessingParams smproxy::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 48 of file Configuration.cc.
struct stor::EventServingParams smproxy::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 42 of file Configuration.cc.
struct QueueConfigurationParams smproxy::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 60 of file Configuration.cc.
|
private |
Definition at line 137 of file Configuration.cc.
References alarmParamCopy_, smproxy::AlarmParams::corruptedEventRate_, and smproxy::AlarmParams::sendAlarms_.
|
private |
Definition at line 83 of file Configuration.cc.
References smproxy::DataRetrieverParams::allowMissingSM_, smproxy::DataRetrieverParams::connectTrySleepTime_, dataRetrieverParamCopy_, smproxy::DataRetrieverParams::headerRetryInterval_, smproxy::DataRetrieverParams::hostName_, smproxy::DataRetrieverParams::maxConnectionRetries_, pos, smproxy::DataRetrieverParams::retryInterval_, smproxy::DataRetrieverParams::sleepTimeIfIdle_, smproxy::DataRetrieverParams::smpsInstance_, and smproxy::DataRetrieverParams::smRegistrationList_.
|
private |
Definition at line 123 of file Configuration.cc.
References smproxy::DQMArchivingParams::archiveDQM_, smproxy::DQMArchivingParams::archiveIntervalDQM_, smproxy::DQMArchivingParams::archiveTopLevelFolder_, dqmArchivingParamCopy_, and smproxy::DQMArchivingParams::filePrefixDQM_.
|
private |
Definition at line 115 of file Configuration.cc.
References stor::DQMProcessingParams::collateDQM_, stor::DQMProcessingParams::compressionLevelDQM_, dqmProcessingParamCopy_, stor::DQMProcessingParams::readyTimeDQM_, seconds(), and stor::DQMProcessingParams::useCompressionDQM_.
|
private |
Definition at line 105 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().
|
private |
Definition at line 131 of file Configuration.cc.
References smproxy::QueueConfigurationParams::monitoringSleepSec_, queueConfigParamCopy_, smproxy::QueueConfigurationParams::registrationQueueSize_, and seconds().
|
private |
Definition at line 232 of file Configuration.cc.
References alarmParamCopy_, smproxy::AlarmParams::corruptedEventRate_, corruptedEventRate_, smproxy::AlarmParams::sendAlarms_, and sendAlarms_.
|
private |
Definition at line 145 of file Configuration.cc.
References smproxy::DataRetrieverParams::allowMissingSM_, allowMissingSM_, smproxy::DataRetrieverParams::connectTrySleepTime_, connectTrySleepTime_, dataRetrieverParamCopy_, stor::utils::getXdataVector(), smproxy::DataRetrieverParams::headerRetryInterval_, headerRetryInterval_, smproxy::DataRetrieverParams::maxConnectionRetries_, maxConnectionRetries_, smproxy::DataRetrieverParams::retryInterval_, retryInterval_, smproxy::DataRetrieverParams::sleepTimeIfIdle_, sleepTimeIfIdle_, smproxy::DataRetrieverParams::smRegistrationList_, and smRegistrationList_.
|
private |
Definition at line 203 of file Configuration.cc.
References smproxy::DQMArchivingParams::archiveDQM_, archiveDQM_, smproxy::DQMArchivingParams::archiveIntervalDQM_, archiveIntervalDQM_, smproxy::DQMArchivingParams::archiveTopLevelFolder_, archiveTopLevelFolder_, dqmArchivingParamCopy_, smproxy::DQMArchivingParams::filePrefixDQM_, and filePrefixDQM_.
|
private |
Definition at line 187 of file Configuration.cc.
References stor::DQMProcessingParams::collateDQM_, collateDQM_, stor::DQMProcessingParams::compressionLevelDQM_, compressionLevelDQM_, dqmProcessingParamCopy_, stor::DQMProcessingParams::readyTimeDQM_, readyTimeDQM_, stor::DQMProcessingParams::useCompressionDQM_, and useCompressionDQM_.
|
private |
Definition at line 167 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_, and eventServeParamCopy_.
|
private |
Definition at line 219 of file Configuration.cc.
References stor::utils::durationToSeconds(), smproxy::QueueConfigurationParams::monitoringSleepSec_, monitoringSleepSec_, queueConfigParamCopy_, smproxy::QueueConfigurationParams::registrationQueueSize_, and registrationQueueSize_.
void smproxy::Configuration::updateAllParams | ( | ) |
Updates the local copy of all configuration parameters from the infospace.
Definition at line 72 of file Configuration.cc.
References generalMutex_, updateLocalAlarmData(), updateLocalDataRetrieverData(), updateLocalDQMArchivingData(), updateLocalDQMProcessingData(), updateLocalEventServingData(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 301 of file Configuration.cc.
References alarmParamCopy_, smproxy::AlarmParams::corruptedEventRate_, corruptedEventRate_, smproxy::AlarmParams::sendAlarms_, and sendAlarms_.
Referenced by updateAllParams().
|
private |
Definition at line 243 of file Configuration.cc.
References smproxy::DataRetrieverParams::allowMissingSM_, allowMissingSM_, smproxy::DataRetrieverParams::connectTrySleepTime_, connectTrySleepTime_, dataRetrieverParamCopy_, stor::utils::getStdVector(), smproxy::DataRetrieverParams::headerRetryInterval_, headerRetryInterval_, smproxy::DataRetrieverParams::maxConnectionRetries_, maxConnectionRetries_, smproxy::DataRetrieverParams::retryInterval_, retryInterval_, smproxy::DataRetrieverParams::sleepTimeIfIdle_, sleepTimeIfIdle_, smproxy::DataRetrieverParams::smRegistrationList_, and smRegistrationList_.
Referenced by updateAllParams().
|
private |
Definition at line 286 of file Configuration.cc.
References smproxy::DQMArchivingParams::archiveDQM_, archiveDQM_, smproxy::DQMArchivingParams::archiveIntervalDQM_, archiveIntervalDQM_, smproxy::DQMArchivingParams::archiveTopLevelFolder_, archiveTopLevelFolder_, dqmArchivingParamCopy_, smproxy::DQMArchivingParams::filePrefixDQM_, and filePrefixDQM_.
Referenced by updateAllParams().
|
private |
Definition at line 277 of file Configuration.cc.
References stor::DQMProcessingParams::collateDQM_, collateDQM_, stor::DQMProcessingParams::compressionLevelDQM_, compressionLevelDQM_, dqmProcessingParamCopy_, stor::DQMProcessingParams::readyTimeDQM_, readyTimeDQM_, seconds(), stor::DQMProcessingParams::useCompressionDQM_, and useCompressionDQM_.
Referenced by updateAllParams().
|
private |
Definition at line 255 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().
|
private |
Definition at line 294 of file Configuration.cc.
References smproxy::QueueConfigurationParams::monitoringSleepSec_, monitoringSleepSec_, queueConfigParamCopy_, smproxy::QueueConfigurationParams::registrationQueueSize_, registrationQueueSize_, and stor::utils::secondsToDuration().
Referenced by updateAllParams().
|
private |
Definition at line 218 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 220 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 219 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 215 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 193 of file Configuration.h.
Referenced by setAlarmDefaults(), setupAlarmInfoSpaceParams(), and updateLocalAlarmData().
|
private |
Definition at line 198 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 210 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 213 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 211 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 205 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 208 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 200 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 217 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 216 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 226 of file Configuration.h.
Referenced by setupAlarmInfoSpaceParams(), and updateLocalAlarmData().
|
private |
Definition at line 188 of file Configuration.h.
Referenced by setDataRetrieverDefaults(), setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 191 of file Configuration.h.
Referenced by setDQMArchivingDefaults(), setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 190 of file Configuration.h.
Referenced by setDQMProcessingDefaults(), setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 189 of file Configuration.h.
Referenced by setEventServingDefaults(), setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 212 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
mutableprivate |
Definition at line 195 of file Configuration.h.
Referenced by actionPerformed(), and updateAllParams().
|
private |
Definition at line 201 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 199 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 223 of file Configuration.h.
Referenced by setupQueueConfigurationInfoSpaceParams(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 192 of file Configuration.h.
Referenced by setQueueConfigurationDefaults(), setupQueueConfigurationInfoSpaceParams(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 206 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 222 of file Configuration.h.
Referenced by setupQueueConfigurationInfoSpaceParams(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 202 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 225 of file Configuration.h.
Referenced by setupAlarmInfoSpaceParams(), and updateLocalAlarmData().
|
private |
Definition at line 203 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 197 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 207 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().