test
CMS 3D CMS Logo

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

#include <SiteLocalConfigService.h>

Inheritance diagram for edm::service::SiteLocalConfigService:
edm::SiteLocalConfig

Public Member Functions

std::string const dataCatalog (void) const
 
unsigned int debugLevel () const
 
bool enablePrefetching () const
 
std::string const fallbackDataCatalog (void) const
 
std::string const lookupCalibConnect (std::string const &input) const
 
std::string const rfioType (void) const
 
 SiteLocalConfigService (ParameterSet const &pset)
 
std::string const & siteName () const
 
std::string const * sourceCacheHint () const
 
double const * sourceCacheMinFree () const
 
std::string const * sourceCacheTempDir () const
 
std::vector< std::string > const * sourceNativeProtocols () const
 
std::string const * sourceReadHint () const
 
unsigned int const * sourceTimeout () const
 
unsigned int const * sourceTTreeCacheSize () const
 
struct addrinfo const * statisticsDestination () const
 
 ~SiteLocalConfigService ()
 
- Public Member Functions inherited from edm::SiteLocalConfig
 SiteLocalConfig ()
 
virtual ~SiteLocalConfig ()
 

Static Public Member Functions

static void fillDescriptions (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void computeStatisticsDestination ()
 
std::string const frontierConnect (std::string const &servlet) const
 
void parse (std::string const &url)
 

Private Attributes

std::string m_cacheHint
 
std::string const * m_cacheHintPtr
 
double m_cacheMinFree
 
double const * m_cacheMinFreePtr
 
std::string m_cacheTempDir
 
std::string const * m_cacheTempDirPtr
 
bool m_connected
 
std::string m_dataCatalog
 
unsigned int m_debugLevel
 
bool m_enablePrefetching
 
bool const * m_enablePrefetchingPtr
 
std::string m_fallbackDataCatalog
 
std::string m_frontierConnect
 
std::vector< std::string > m_nativeProtocols
 
std::vector< std::string > const * m_nativeProtocolsPtr
 
std::string m_readHint
 
std::string const * m_readHintPtr
 
std::string m_rfioType
 
std::string m_siteName
 
struct addrinfo * m_statisticsAddrInfo
 
std::string m_statisticsDestination
 
unsigned int m_timeout
 
unsigned int const * m_timeoutPtr
 
unsigned int m_ttreeCacheSize
 
unsigned int const * m_ttreeCacheSizePtr
 
std::string m_url
 

Static Private Attributes

static const std::string m_statisticsDefaultPort = "3334"
 

Detailed Description

Definition at line 23 of file SiteLocalConfigService.h.

Constructor & Destructor Documentation

edm::service::SiteLocalConfigService::SiteLocalConfigService ( ParameterSet const &  pset)
explicit

Definition at line 108 of file SiteLocalConfigService.cc.

References computeStatisticsDestination(), edm::ParameterSet::exists(), edm::ParameterSet::getUntrackedParameter(), m_cacheHint, m_cacheHintPtr, m_cacheMinFree, m_cacheMinFreePtr, m_cacheTempDir, m_cacheTempDirPtr, m_debugLevel, m_enablePrefetching, m_enablePrefetchingPtr, m_nativeProtocols, m_nativeProtocolsPtr, m_readHint, m_readHintPtr, m_statisticsDestination, m_timeout, m_timeoutPtr, m_ttreeCacheSize, m_ttreeCacheSizePtr, m_url, NULL, parse(), AlCaHLTBitMon_QueryRunRegistry::string, and tmp.

108  :
109  m_url("/SITECONF/local/JobConfig/site-local-config.xml"),
110  m_dataCatalog(),
113  m_rfioType("castor"),
114  m_connected(false),
115  m_cacheTempDir(),
116  m_cacheTempDirPtr(nullptr),
117  m_cacheMinFree(),
118  m_cacheMinFreePtr(nullptr),
119  m_cacheHint(),
120  m_cacheHintPtr(nullptr),
121  m_readHint(),
122  m_readHintPtr(nullptr),
123  m_ttreeCacheSize(0U),
124  m_ttreeCacheSizePtr(nullptr),
125  m_timeout(0U),
126  m_timeoutPtr(nullptr),
127  m_debugLevel(0U),
128  m_enablePrefetching(false),
129  m_enablePrefetchingPtr(nullptr),
131  m_nativeProtocolsPtr(nullptr),
133  m_statisticsAddrInfo(nullptr),
134  m_siteName() {
135 
136  char* tmp = getenv("CMS_PATH");
137 
138  if (tmp) {
139  m_url = tmp + m_url;
140  }
141 
142  this->parse(m_url);
143 
144  //apply overrides
145  overrideFromPSet("overrideSourceCacheTempDir", pset, m_cacheTempDir, m_cacheTempDirPtr);
146  overrideFromPSet("overrideSourceCacheMinFree", pset, m_cacheMinFree, m_cacheMinFreePtr);
147  overrideFromPSet("overrideSourceCacheHintDir", pset, m_cacheHint, m_cacheHintPtr);
148  overrideFromPSet("overrideSourceReadHint", pset, m_readHint, m_readHintPtr);
149  overrideFromPSet("overrideSourceNativeProtocols", pset, m_nativeProtocols, m_nativeProtocolsPtr);
150  overrideFromPSet("overrideSourceTTreeCacheSize", pset, m_ttreeCacheSize, m_ttreeCacheSizePtr);
151  overrideFromPSet("overrideSourceTimeout", pset, m_timeout, m_timeoutPtr);
152  overrideFromPSet("overridePrefetching", pset, m_enablePrefetching, m_enablePrefetchingPtr);
153  const std::string * tmpStringPtr = NULL;
154  overrideFromPSet("overrideStatisticsDestination", pset, m_statisticsDestination, tmpStringPtr);
156 
157  if(pset.exists("debugLevel")) {
158  m_debugLevel = pset.getUntrackedParameter<unsigned int>("debugLevel");
159  }
160 
161  }
#define NULL
Definition: scimark2.h:8
std::vector< std::string > const * m_nativeProtocolsPtr
std::vector< std::string > m_nativeProtocols
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
edm::service::SiteLocalConfigService::~SiteLocalConfigService ( )

Definition at line 163 of file SiteLocalConfigService.cc.

References m_statisticsAddrInfo.

163  {
164  if (m_statisticsAddrInfo) {
165  freeaddrinfo(m_statisticsAddrInfo);
166  m_statisticsAddrInfo = nullptr;
167  }
168  }

Member Function Documentation

void edm::service::SiteLocalConfigService::computeStatisticsDestination ( )
private

Definition at line 518 of file SiteLocalConfigService.cc.

References alignCSCRings::e, query::host, m_statisticsAddrInfo, m_statisticsDefaultPort, m_statisticsDestination, query::port, split, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by SiteLocalConfigService().

518  {
519  std::vector<std::string> inputStrings;
520  boost::split(inputStrings, m_statisticsDestination, boost::is_any_of(":"));
521  const std::string &host=inputStrings[0];
522  const std::string &port = (inputStrings.size() > 1) ? inputStrings[1] : m_statisticsDefaultPort;
523  struct addrinfo *res;
524  struct addrinfo hints;
525  memset(&hints, '\0', sizeof(hints));
526  hints.ai_socktype = SOCK_DGRAM;
527  hints.ai_flags = AI_ADDRCONFIG;
528  hints.ai_family = AF_UNSPEC;
529  int e = getaddrinfo(host.c_str(), port.c_str(), &hints, &res);
530  if (e != 0) {
531  // Silent failure - there's no way to report non-fatal failures from here.
532  return;
533  }
534  m_statisticsAddrInfo = res;
535  }
static const std::string m_statisticsDefaultPort
int port
Definition: query.py:115
string host
Definition: query.py:114
double split
Definition: MVATrainer.cc:139
std::string const edm::service::SiteLocalConfigService::dataCatalog ( void  ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 171 of file SiteLocalConfigService.cc.

References edm::hlt::Exception, m_connected, m_dataCatalog, and m_url.

171  {
172  if (!m_connected) {
173  //throw cms::Exception("Incomplete configuration")
174  // << "Valid site-local-config not found at " << m_url;
175  // Return PoolFileCatalog.xml for now
176  return "file:PoolFileCatalog.xml";
177  }
178 
179  if (m_dataCatalog == "") {
180  throw cms::Exception("Incomplete configuration")
181  << "Did not find catalog in event-data section in " << m_url;
182  }
183 
184  return m_dataCatalog;
185  }
unsigned int edm::service::SiteLocalConfigService::debugLevel ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 311 of file SiteLocalConfigService.cc.

References m_debugLevel.

311  {
312  return m_debugLevel;
313  }
bool edm::service::SiteLocalConfigService::enablePrefetching ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 306 of file SiteLocalConfigService.cc.

References m_enablePrefetchingPtr.

306  {
308  }
std::string const edm::service::SiteLocalConfigService::fallbackDataCatalog ( void  ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 188 of file SiteLocalConfigService.cc.

References m_connected, and m_fallbackDataCatalog.

188  {
189  if (!m_connected) {
190  //throw cms::Exception("Incomplete configuration")
191  // << "Valid site-local-config not found at " << m_url;
192  // Return PoolFileCatalog.xml for now
193  return "file:PoolFileCatalog.xml";
194  }
195 
196  // Note: Unlike the dataCatalog, the fallbackDataCatalog may be empty!
197  return m_fallbackDataCatalog;
198  }
void edm::service::SiteLocalConfigService::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 538 of file SiteLocalConfigService.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addOptionalUntracked(), edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

538  {
540  desc.setComment("Service to translate logical file names to physical file names.");
541 
542  desc.addOptionalUntracked<std::string>("overrideSourceCacheTempDir");
543  desc.addOptionalUntracked<double>("overrideSourceCacheMinFree");
544  desc.addOptionalUntracked<std::string>("overrideSourceCacheHintDir");
545  desc.addOptionalUntracked<std::string>("overrideSourceReadHint");
546  desc.addOptionalUntracked<std::vector<std::string> >("overrideSourceNativeProtocols");
547  desc.addOptionalUntracked<unsigned int>("overrideSourceTTreeCacheSize");
548  desc.addOptionalUntracked<unsigned int>("overrideSourceTimeout");
549  desc.addOptionalUntracked<unsigned int>("debugLevel");
550  desc.addOptionalUntracked<bool>("overridePrefetching")
551  ->setComment("Request ROOT to asynchronously prefetch I/O during computation.");
552  desc.addOptionalUntracked<std::string>("overrideStatisticsDestination")
553  ->setComment("Provide an alternate network destination for I/O statistics (must be in the form of host:port).");
554 
555  descriptions.add("SiteLocalConfigService", desc);
556  }
std::string const edm::service::SiteLocalConfigService::frontierConnect ( std::string const &  servlet) const
private

Definition at line 201 of file SiteLocalConfigService.cc.

References edm::hlt::Exception, m_connected, m_frontierConnect, m_url, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by lookupCalibConnect(), and parse().

201  {
202  if (!m_connected) {
203  throw cms::Exception("Incomplete configuration")
204  << "Valid site-local-config not found at " << m_url;
205  }
206 
207  if (m_frontierConnect == "") {
208  throw cms::Exception("Incomplete configuration")
209  << "Did not find frontier-connect in calib-data section in " << m_url;
210  }
211 
212  if (servlet == "") {
213  return m_frontierConnect;
214  }
215 
216  // Replace the last component of every "serverurl=" piece (up to the
217  // next close-paren) with the servlet
218  std::string::size_type nextparen = 0;
219  std::string::size_type serverurl, lastslash;
220  std::string complexstr = "";
221  while ((serverurl = m_frontierConnect.find("(serverurl=", nextparen)) != std::string::npos) {
222  complexstr.append(m_frontierConnect, nextparen, serverurl - nextparen);
223  nextparen = m_frontierConnect.find(')', serverurl);
224  lastslash = m_frontierConnect.rfind('/', nextparen);
225  complexstr.append(m_frontierConnect, serverurl, lastslash - serverurl + 1);
226  complexstr.append(servlet);
227  }
228  complexstr.append(m_frontierConnect, nextparen, m_frontierConnect.length()-nextparen);
229 
230  return complexstr;
231  }
uint16_t size_type
std::string const edm::service::SiteLocalConfigService::lookupCalibConnect ( std::string const &  input) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 234 of file SiteLocalConfigService.cc.

References frontierConnect(), input, and AlCaHLTBitMon_QueryRunRegistry::string.

234  {
235  static std::string const proto = "frontier://";
236 
237  if (input.substr(0,proto.length()) == proto) {
238  // Replace the part after the frontier:// and before either an open-
239  // parentheses (which indicates user-supplied options) or the last
240  // slash (which indicates start of the schema) with the complex
241  // parenthesized string returned from frontierConnect() (which
242  // contains all the information needed to connect to frontier),
243  // if that part is a simple servlet name (non-empty and not
244  // containing special characters)
245  // Example connect strings where servlet is replaced:
246  // frontier://cms_conditions_data/CMS_COND_ECAL
247  // frontier://FrontierInt/CMS_COND_ECAL
248  // frontier://FrontierInt(retrieve-ziplevel=0)/CMS_COND_ECAL
249  // Example connect strings left untouched:
250  // frontier://cmsfrontier.cern.ch:8000/FrontierInt/CMS_COND_ECAL
251  // frontier://(serverurl=cmsfrontier.cern.ch:8000/FrontierInt)/CMS_COND_ECAL
252  std::string::size_type startservlet = proto.length();
253  // if user supplied extra parenthesized options, stop servlet there
254  std::string::size_type endservlet = input.find("(", startservlet);
255  if (endservlet == std::string::npos) {
256  endservlet = input.rfind('/', input.length());
257  }
258  std::string servlet = input.substr(startservlet, endservlet - startservlet);
259  if ((servlet != "") && (servlet.find_first_of(":/)[]") == std::string::npos)) {
260  if (servlet == "cms_conditions_data") {
261  // use the default servlet from site-local-config.xml
262  servlet = "";
263  }
264  return proto + frontierConnect(servlet) + input.substr(endservlet);
265  }
266  }
267  return input;
268  }
uint16_t size_type
static std::string const input
Definition: EdmProvDump.cc:44
std::string const frontierConnect(std::string const &servlet) const
void edm::service::SiteLocalConfigService::parse ( std::string const &  url)
private

Definition at line 331 of file SiteLocalConfigService.cc.

References _toDOMS(), _toString(), validate_alignment_devdb10_cfg::catalog, asciidump::doc, alignCSCRings::e, frontierConnect(), i, m_cacheHint, m_cacheHintPtr, m_cacheMinFree, m_cacheMinFreePtr, m_cacheTempDir, m_cacheTempDirPtr, m_connected, m_dataCatalog, m_enablePrefetching, m_enablePrefetchingPtr, m_fallbackDataCatalog, m_frontierConnect, m_nativeProtocols, m_nativeProtocolsPtr, m_readHint, m_readHintPtr, m_rfioType, m_siteName, m_statisticsDestination, m_timeout, m_timeoutPtr, m_ttreeCacheSize, m_ttreeCacheSizePtr, geometryXMLtoCSV::parser, cmsHarvester::sites, and cms::concurrency::xercesInitialize().

Referenced by SiteLocalConfigService().

331  {
333  std::auto_ptr<XercesDOMParser> parser(new XercesDOMParser);
334  try {
335  parser->setValidationScheme(XercesDOMParser::Val_Auto);
336  parser->setDoNamespaces(false);
337 
338  parser->parse(url.c_str());
339  DOMDocument* doc = parser->getDocument();
340  if (!doc) {
341  return;
342  }
343 
344  // The Site Config has the following format
345  // <site-local-config>
346  // <site name="FNAL">
347  // <event-data>
348  // <catalog url="trivialcatalog_file:/x/y/z.xml"/>
349  // <rfiotype value="castor"/>
350  // </event-data>
351  // <calib-data>
352  // <catalog url="trivialcatalog_file:/x/y/z.xml"/>
353  // <frontier-connect>
354  // ... frontier-interpreted server/proxy xml ...
355  // </frontier-connect>
356  // </calib-data>
357  // <source-config>
358  // <cache-temp-dir name="/a/b/c"/>
359  // <cache-hint value="..."/>
360  // <read-hint value="..."/>
361  // <ttree-cache-size value="0"/>
362  // <native-protocols>
363  // <protocol prefix="dcache"/>
364  // <protocol prefix="file"/>
365  // </native-protocols>
366  // </source-config>
367  // </site>
368  // </site-local-config>
369 
370  // FIXME: should probably use the parser for validating the XML.
371 
372  DOMNodeList *sites = doc->getElementsByTagName(_toDOMS("site"));
373  unsigned int numSites = sites->getLength();
374  for (unsigned int i = 0; i < numSites; ++i) {
375  DOMElement *site = static_cast<DOMElement *>(sites->item(i));
376 
377  // Parse the site name
378  m_siteName = _toString(site->getAttribute(_toDOMS("name")));
379 
380  // Parsing of the event data section
381  {
382  DOMNodeList *eventDataList = site->getElementsByTagName(_toDOMS("event-data"));
383  if (eventDataList->getLength() > 0) {
384  DOMElement *eventData = static_cast<DOMElement *>(eventDataList->item(0));
385 
386  DOMNodeList *catalogs = eventData->getElementsByTagName(_toDOMS("catalog"));
387 
388  if (catalogs->getLength() > 0) {
389  DOMElement * catalog = static_cast<DOMElement *>(catalogs->item(0));
390  m_dataCatalog = _toString(catalog->getAttribute(_toDOMS("url")));
391  }
392 
393  if (catalogs->getLength() > 1) {
394  DOMElement * catalog = static_cast<DOMElement *>(catalogs->item(1));
395  m_fallbackDataCatalog = _toString(catalog->getAttribute(_toDOMS("url")));
396  }
397 
398  DOMNodeList* rfiotypes = eventData->getElementsByTagName(_toDOMS("rfiotype"));
399 
400  if (rfiotypes->getLength() > 0) {
401  DOMElement* rfiotype = static_cast<DOMElement *>(rfiotypes->item(0));
402  m_rfioType = _toString(rfiotype->getAttribute(_toDOMS("value")));
403  }
404  }
405  }
406 
407  // Parsing of the calib-data section
408  {
409  DOMNodeList *calibDataList = site->getElementsByTagName(_toDOMS("calib-data"));
410 
411  if (calibDataList->getLength() > 0) {
412  DOMElement *calibData = static_cast<DOMElement *>(calibDataList->item(0));
413  DOMNodeList *frontierConnectList = calibData->getElementsByTagName(_toDOMS("frontier-connect"));
414 
415  if (frontierConnectList->getLength() > 0) {
416  DOMElement *frontierConnect = static_cast<DOMElement *>(frontierConnectList->item(0));
417  m_frontierConnect = _toParenString(*frontierConnect);
418  }
419  }
420  }
421  // Parsing of the source config section
422  {
423  DOMNodeList *sourceConfigList = site->getElementsByTagName(_toDOMS("source-config"));
424 
425  if (sourceConfigList->getLength() > 0) {
426  DOMElement *sourceConfig = static_cast<DOMElement *>(sourceConfigList->item(0));
427  DOMNodeList *cacheTempDirList = sourceConfig->getElementsByTagName(_toDOMS("cache-temp-dir"));
428 
429  if (cacheTempDirList->getLength() > 0) {
430  DOMElement *cacheTempDir = static_cast<DOMElement *>(cacheTempDirList->item(0));
431  m_cacheTempDir = _toString(cacheTempDir->getAttribute(_toDOMS("name")));
433  }
434 
435  DOMNodeList *cacheMinFreeList = sourceConfig->getElementsByTagName(_toDOMS("cache-min-free"));
436 
437  if (cacheMinFreeList->getLength() > 0) {
438  DOMElement *cacheMinFree = static_cast<DOMElement *>(cacheMinFreeList->item(0));
439  m_cacheMinFree = _toDouble(cacheMinFree->getAttribute(_toDOMS("value")));
441  }
442 
443  DOMNodeList *cacheHintList = sourceConfig->getElementsByTagName(_toDOMS("cache-hint"));
444 
445  if (cacheHintList->getLength() > 0) {
446  DOMElement *cacheHint = static_cast<DOMElement *>(cacheHintList->item(0));
447  m_cacheHint = _toString(cacheHint->getAttribute(_toDOMS("value")));
449  }
450 
451  DOMNodeList *readHintList = sourceConfig->getElementsByTagName(_toDOMS("read-hint"));
452 
453  if (readHintList->getLength() > 0) {
454  DOMElement *readHint = static_cast<DOMElement *>(readHintList->item(0));
455  m_readHint = _toString(readHint->getAttribute(_toDOMS("value")));
457  }
458 
459  DOMNodeList *ttreeCacheSizeList = sourceConfig->getElementsByTagName(_toDOMS("ttree-cache-size"));
460 
461  if (ttreeCacheSizeList->getLength() > 0) {
462  DOMElement *ttreeCacheSize = static_cast<DOMElement *>(ttreeCacheSizeList->item(0));
463  m_ttreeCacheSize = _toUInt(ttreeCacheSize->getAttribute(_toDOMS("value")));
465  }
466 
467  DOMNodeList *timeoutList = sourceConfig->getElementsByTagName(_toDOMS("timeout-in-seconds"));
468 
469  if (timeoutList->getLength() > 0) {
470  DOMElement *timeout = static_cast<DOMElement *>(timeoutList->item(0));
471  m_timeout = _toUInt(timeout->getAttribute(_toDOMS("value")));
473  }
474 
475  DOMNodeList *statsDestList = sourceConfig->getElementsByTagName(_toDOMS("statistics-destination"));
476 
477  if (statsDestList->getLength() > 0) {
478  DOMElement *statsDest = static_cast<DOMElement *>(statsDestList->item(0));
479  m_statisticsDestination = _toString(statsDest->getAttribute(_toDOMS("name")));
480  }
481 
482  DOMNodeList *prefetchingList = sourceConfig->getElementsByTagName(_toDOMS("prefetching"));
483 
484  if (prefetchingList->getLength() > 0) {
485  DOMElement *prefetching = static_cast<DOMElement *>(prefetchingList->item(0));
486  m_enablePrefetching = _toBool(prefetching->getAttribute(_toDOMS("value")));
488  }
489 
490  DOMNodeList *nativeProtocolsList = sourceConfig->getElementsByTagName(_toDOMS("native-protocols"));
491 
492  if (nativeProtocolsList->getLength() > 0) {
493  DOMElement *nativeProtocol = static_cast<DOMElement *>(nativeProtocolsList->item(0));
494  DOMNodeList *childList = nativeProtocol->getChildNodes();
495 
496  XMLCh* prefixXMLCh = _toDOMS("prefix");
497  unsigned int numNodes = childList->getLength();
498  for (unsigned int i = 0; i < numNodes; ++i) {
499  DOMNode *childNode = childList->item(i);
500  if (childNode->getNodeType() != DOMNode::ELEMENT_NODE) {
501  continue;
502  }
503  DOMElement *child = static_cast<DOMElement *>(childNode);
504  m_nativeProtocols.push_back(_toString(child->getAttribute(prefixXMLCh)));
505  }
507  }
508  }
509  }
510  }
511  m_connected = true;
512  }
513  catch (xercesc::DOMException const& e) {
514  }
515  }
int i
Definition: DBlmapReader.cc:9
std::string _toString(const XMLCh *toTranscode)
void xercesInitialize()
Definition: Xerces.cc:17
std::vector< std::string > const * m_nativeProtocolsPtr
tuple doc
Definition: asciidump.py:381
std::vector< std::string > m_nativeProtocols
XMLCh * _toDOMS(std::string temp)
std::string const frontierConnect(std::string const &servlet) const
std::string const edm::service::SiteLocalConfigService::rfioType ( void  ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 271 of file SiteLocalConfigService.cc.

References m_rfioType.

271  {
272  return m_rfioType;
273  }
std::string const & edm::service::SiteLocalConfigService::siteName ( void  ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 326 of file SiteLocalConfigService.cc.

References m_siteName.

326  {
327  return m_siteName;
328  }
std::string const * edm::service::SiteLocalConfigService::sourceCacheHint ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 286 of file SiteLocalConfigService.cc.

References m_cacheHintPtr.

286  {
287  return m_cacheHintPtr;
288  }
double const * edm::service::SiteLocalConfigService::sourceCacheMinFree ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 281 of file SiteLocalConfigService.cc.

References m_cacheMinFreePtr.

281  {
282  return m_cacheMinFreePtr;
283  }
std::string const * edm::service::SiteLocalConfigService::sourceCacheTempDir ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 276 of file SiteLocalConfigService.cc.

References m_cacheTempDirPtr.

276  {
277  return m_cacheTempDirPtr;
278  }
std::vector< std::string > const * edm::service::SiteLocalConfigService::sourceNativeProtocols ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 316 of file SiteLocalConfigService.cc.

References m_nativeProtocolsPtr.

316  {
317  return m_nativeProtocolsPtr;
318  }
std::vector< std::string > const * m_nativeProtocolsPtr
std::string const * edm::service::SiteLocalConfigService::sourceReadHint ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 291 of file SiteLocalConfigService.cc.

References m_readHintPtr.

291  {
292  return m_readHintPtr;
293  }
unsigned int const * edm::service::SiteLocalConfigService::sourceTimeout ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 301 of file SiteLocalConfigService.cc.

References m_timeoutPtr.

301  {
302  return m_timeoutPtr;
303  }
unsigned int const * edm::service::SiteLocalConfigService::sourceTTreeCacheSize ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 296 of file SiteLocalConfigService.cc.

References m_ttreeCacheSizePtr.

296  {
297  return m_ttreeCacheSizePtr;
298  }
struct addrinfo const * edm::service::SiteLocalConfigService::statisticsDestination ( ) const
virtual

Implements edm::SiteLocalConfig.

Definition at line 321 of file SiteLocalConfigService.cc.

References m_statisticsAddrInfo.

321  {
322  return m_statisticsAddrInfo;
323  }

Member Data Documentation

std::string edm::service::SiteLocalConfigService::m_cacheHint
private

Definition at line 64 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

std::string const* edm::service::SiteLocalConfigService::m_cacheHintPtr
private

Definition at line 65 of file SiteLocalConfigService.h.

Referenced by parse(), SiteLocalConfigService(), and sourceCacheHint().

double edm::service::SiteLocalConfigService::m_cacheMinFree
private

Definition at line 62 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

double const* edm::service::SiteLocalConfigService::m_cacheMinFreePtr
private

Definition at line 63 of file SiteLocalConfigService.h.

Referenced by parse(), SiteLocalConfigService(), and sourceCacheMinFree().

std::string edm::service::SiteLocalConfigService::m_cacheTempDir
private

Definition at line 60 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

std::string const* edm::service::SiteLocalConfigService::m_cacheTempDirPtr
private

Definition at line 61 of file SiteLocalConfigService.h.

Referenced by parse(), SiteLocalConfigService(), and sourceCacheTempDir().

bool edm::service::SiteLocalConfigService::m_connected
private

Definition at line 59 of file SiteLocalConfigService.h.

Referenced by dataCatalog(), fallbackDataCatalog(), frontierConnect(), and parse().

std::string edm::service::SiteLocalConfigService::m_dataCatalog
private

Definition at line 55 of file SiteLocalConfigService.h.

Referenced by dataCatalog(), and parse().

unsigned int edm::service::SiteLocalConfigService::m_debugLevel
private

Definition at line 72 of file SiteLocalConfigService.h.

Referenced by debugLevel(), and SiteLocalConfigService().

bool edm::service::SiteLocalConfigService::m_enablePrefetching
private

Definition at line 73 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

bool const* edm::service::SiteLocalConfigService::m_enablePrefetchingPtr
private

Definition at line 74 of file SiteLocalConfigService.h.

Referenced by enablePrefetching(), parse(), and SiteLocalConfigService().

std::string edm::service::SiteLocalConfigService::m_fallbackDataCatalog
private

Definition at line 56 of file SiteLocalConfigService.h.

Referenced by fallbackDataCatalog(), and parse().

std::string edm::service::SiteLocalConfigService::m_frontierConnect
private

Definition at line 57 of file SiteLocalConfigService.h.

Referenced by frontierConnect(), and parse().

std::vector<std::string> edm::service::SiteLocalConfigService::m_nativeProtocols
private

Definition at line 75 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

std::vector<std::string> const* edm::service::SiteLocalConfigService::m_nativeProtocolsPtr
private

Definition at line 76 of file SiteLocalConfigService.h.

Referenced by parse(), SiteLocalConfigService(), and sourceNativeProtocols().

std::string edm::service::SiteLocalConfigService::m_readHint
private

Definition at line 66 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

std::string const* edm::service::SiteLocalConfigService::m_readHintPtr
private

Definition at line 67 of file SiteLocalConfigService.h.

Referenced by parse(), SiteLocalConfigService(), and sourceReadHint().

std::string edm::service::SiteLocalConfigService::m_rfioType
private

Definition at line 58 of file SiteLocalConfigService.h.

Referenced by parse(), and rfioType().

std::string edm::service::SiteLocalConfigService::m_siteName
private

Definition at line 80 of file SiteLocalConfigService.h.

Referenced by parse(), and siteName().

struct addrinfo* edm::service::SiteLocalConfigService::m_statisticsAddrInfo
private
const std::string edm::service::SiteLocalConfigService::m_statisticsDefaultPort = "3334"
staticprivate

Definition at line 79 of file SiteLocalConfigService.h.

Referenced by computeStatisticsDestination().

std::string edm::service::SiteLocalConfigService::m_statisticsDestination
private
unsigned int edm::service::SiteLocalConfigService::m_timeout
private

Definition at line 70 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

unsigned int const* edm::service::SiteLocalConfigService::m_timeoutPtr
private

Definition at line 71 of file SiteLocalConfigService.h.

Referenced by parse(), SiteLocalConfigService(), and sourceTimeout().

unsigned int edm::service::SiteLocalConfigService::m_ttreeCacheSize
private

Definition at line 68 of file SiteLocalConfigService.h.

Referenced by parse(), and SiteLocalConfigService().

unsigned int const* edm::service::SiteLocalConfigService::m_ttreeCacheSizePtr
private

Definition at line 69 of file SiteLocalConfigService.h.

Referenced by parse(), SiteLocalConfigService(), and sourceTTreeCacheSize().

std::string edm::service::SiteLocalConfigService::m_url
private

Definition at line 54 of file SiteLocalConfigService.h.

Referenced by dataCatalog(), frontierConnect(), and SiteLocalConfigService().