![]() |
![]() |
#include <Configuration.h>
Public Member Functions | |
virtual void | actionPerformed (xdata::Event &isEvt) |
Configuration (xdata::InfoSpace *infoSpace, unsigned long instanceNumber) | |
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 | setDataRetrieverDefaults (unsigned long instanceNumber) |
void | setDQMArchivingDefaults () |
void | setDQMProcessingDefaults () |
void | setEventServingDefaults () |
void | setQueueConfigurationDefaults () |
void | setupDataRetrieverInfoSpaceParams (xdata::InfoSpace *) |
void | setupDQMArchivingInfoSpaceParams (xdata::InfoSpace *) |
void | setupDQMProcessingInfoSpaceParams (xdata::InfoSpace *) |
void | setupEventServingInfoSpaceParams (xdata::InfoSpace *) |
void | setupQueueConfigurationInfoSpaceParams (xdata::InfoSpace *) |
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 75 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 88 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 273 of file Configuration.cc.
References generalMutex_.
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 34 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 52 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 46 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 40 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 58 of file Configuration.cc.
|
private |
Definition at line 74 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 114 of file Configuration.cc.
References smproxy::DQMArchivingParams::archiveDQM_, smproxy::DQMArchivingParams::archiveIntervalDQM_, smproxy::DQMArchivingParams::archiveTopLevelFolder_, dqmArchivingParamCopy_, and smproxy::DQMArchivingParams::filePrefixDQM_.
|
private |
Definition at line 106 of file Configuration.cc.
References stor::DQMProcessingParams::collateDQM_, stor::DQMProcessingParams::compressionLevelDQM_, dqmProcessingParamCopy_, stor::DQMProcessingParams::readyTimeDQM_, seconds(), and stor::DQMProcessingParams::useCompressionDQM_.
|
private |
Definition at line 96 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 122 of file Configuration.cc.
References smproxy::QueueConfigurationParams::monitoringSleepSec_, queueConfigParamCopy_, smproxy::QueueConfigurationParams::registrationQueueSize_, and seconds().
|
private |
Definition at line 129 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 187 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 171 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 151 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 203 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 64 of file Configuration.cc.
References generalMutex_, updateLocalDataRetrieverData(), updateLocalDQMArchivingData(), updateLocalDQMProcessingData(), updateLocalEventServingData(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 215 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 258 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 249 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 227 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 266 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 192 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 194 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 193 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 189 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 172 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 184 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 187 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 185 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 179 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 182 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 174 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 191 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 190 of file Configuration.h.
Referenced by setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 163 of file Configuration.h.
Referenced by setDataRetrieverDefaults(), setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 166 of file Configuration.h.
Referenced by setDQMArchivingDefaults(), setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
private |
Definition at line 165 of file Configuration.h.
Referenced by setDQMProcessingDefaults(), setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 164 of file Configuration.h.
Referenced by setEventServingDefaults(), setupEventServingInfoSpaceParams(), and updateLocalEventServingData().
|
private |
Definition at line 186 of file Configuration.h.
Referenced by setupDQMArchivingInfoSpaceParams(), and updateLocalDQMArchivingData().
|
mutableprivate |
Definition at line 169 of file Configuration.h.
Referenced by actionPerformed(), and updateAllParams().
|
private |
Definition at line 175 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 173 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 197 of file Configuration.h.
Referenced by setupQueueConfigurationInfoSpaceParams(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 167 of file Configuration.h.
Referenced by setQueueConfigurationDefaults(), setupQueueConfigurationInfoSpaceParams(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 180 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().
|
private |
Definition at line 196 of file Configuration.h.
Referenced by setupQueueConfigurationInfoSpaceParams(), and updateLocalQueueConfigurationData().
|
private |
Definition at line 176 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 177 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 171 of file Configuration.h.
Referenced by setupDataRetrieverInfoSpaceParams(), and updateLocalDataRetrieverData().
|
private |
Definition at line 181 of file Configuration.h.
Referenced by setupDQMProcessingInfoSpaceParams(), and updateLocalDQMProcessingData().