CMS 3D CMS Logo

SiteLocalConfigService.h
Go to the documentation of this file.
1 #ifndef FWCore_Services_SiteLocalConfigService_H
2 #define FWCore_Services_SiteLocalConfigService_H
3 
5 //
6 // dataCatalogs() returns multiple data catalogs in site-local-config.xml
7 //
9 //<<<<<< INCLUDES >>>>>>
10 #include <string>
11 #include <list>
12 #include <vector>
15 //<<<<<< PUBLIC DEFINES >>>>>>
16 //<<<<<< PUBLIC CONSTANTS >>>>>>
17 //<<<<<< PUBLIC TYPES >>>>>>
18 namespace edm {
19  class ParameterSet;
20 }
21 
22 //<<<<<< PUBLIC VARIABLES >>>>>>
23 //<<<<<< PUBLIC FUNCTIONS >>>>>>
24 //<<<<<< CLASS DECLARATIONS >>>>>>
25 
26 namespace edm {
28  namespace service {
30  public:
31  explicit SiteLocalConfigService(ParameterSet const& pset);
32 
33  std::vector<std::string> const& dataCatalogs(void) const override;
34  std::string const lookupCalibConnect(std::string const& input) const override;
35  std::string const rfioType(void) const override;
36 
37  std::string const* sourceCacheTempDir() const override;
38  double const* sourceCacheMinFree() const override;
39  std::string const* sourceCacheHint() const override;
40  std::string const* sourceCloneCacheHint() const override;
41  std::string const* sourceReadHint() const override;
42  unsigned int const* sourceTTreeCacheSize() const override;
43  unsigned int const* sourceTimeout() const override;
44  bool enablePrefetching() const override;
45  unsigned int debugLevel() const override;
46  std::vector<std::string> const* sourceNativeProtocols() const override;
47  struct addrinfo const* statisticsDestination() const override;
48  std::set<std::string> const* statisticsInfo() const override;
49  std::string const& siteName() const override;
50 
51  // implicit copy constructor
52  // implicit assignment operator
53  ~SiteLocalConfigService() override;
54 
55  static void fillDescriptions(ConfigurationDescriptions& descriptions);
56 
57  private:
58  void parse(std::string const& url);
60  std::string const frontierConnect(std::string const& servlet) const;
62  std::vector<std::string> m_dataCatalogs;
69  double const* m_cacheMinFreePtr;
76  unsigned int m_ttreeCacheSize;
77  unsigned int const* m_ttreeCacheSizePtr;
78  unsigned int m_timeout;
79  unsigned int const* m_timeoutPtr;
80  unsigned int m_debugLevel;
83  std::vector<std::string> m_nativeProtocols;
84  std::vector<std::string> const* m_nativeProtocolsPtr;
88  std::set<std::string> m_statisticsInfo;
91  };
92 
93  inline bool isProcessWideService(SiteLocalConfigService const*) { return true; }
94  } // namespace service
95 } // namespace edm
96 
97 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
98 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
99 
100 #endif // FRAMEWORK_SITE_LOCAL_CONFIG_H
service
Definition: service.py:1
edm::service::SiteLocalConfigService::m_nativeProtocols
std::vector< std::string > m_nativeProtocols
Definition: SiteLocalConfigService.h:83
relmon_authenticated_wget.url
url
Definition: relmon_authenticated_wget.py:22
input
static const std::string input
Definition: EdmProvDump.cc:48
edm::service::SiteLocalConfigService::m_cacheHintPtr
std::string const * m_cacheHintPtr
Definition: SiteLocalConfigService.h:71
edm::service::SiteLocalConfigService::m_statisticsInfo
std::set< std::string > m_statisticsInfo
Definition: SiteLocalConfigService.h:88
propagate_const.h
edm::service::SiteLocalConfigService::computeStatisticsDestination
void computeStatisticsDestination()
Definition: SiteLocalConfigService.cc:423
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::service::SiteLocalConfigService::m_rfioType
std::string m_rfioType
Definition: SiteLocalConfigService.h:64
edm::service::SiteLocalConfigService::m_ttreeCacheSizePtr
unsigned int const * m_ttreeCacheSizePtr
Definition: SiteLocalConfigService.h:77
edm::service::SiteLocalConfigService::debugLevel
unsigned int debugLevel() const override
Definition: SiteLocalConfigService.cc:247
edm::service::SiteLocalConfigService::m_readHintPtr
std::string const * m_readHintPtr
Definition: SiteLocalConfigService.h:75
edm::service::SiteLocalConfigService::siteName
std::string const & siteName() const override
Definition: SiteLocalConfigService.cc:261
edm::service::SiteLocalConfigService::m_cacheHint
std::string m_cacheHint
Definition: SiteLocalConfigService.h:70
edm::service::SiteLocalConfigService::dataCatalogs
std::vector< std::string > const & dataCatalogs(void) const override
Definition: SiteLocalConfigService.cc:144
edm::service::isProcessWideService
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:98
edm::service::SiteLocalConfigService::SiteLocalConfigService
SiteLocalConfigService(ParameterSet const &pset)
Definition: SiteLocalConfigService.cc:77
watchdog.const
const
Definition: watchdog.py:83
edm::service::SiteLocalConfigService::statisticsInfo
std::set< std::string > const * statisticsInfo() const override
Definition: SiteLocalConfigService.cc:257
edm::service::SiteLocalConfigService::m_timeout
unsigned int m_timeout
Definition: SiteLocalConfigService.h:78
edm::service::SiteLocalConfigService::sourceTTreeCacheSize
unsigned int const * sourceTTreeCacheSize() const override
Definition: SiteLocalConfigService.cc:239
edm::service::SiteLocalConfigService::frontierConnect
const std::string frontierConnect(std::string const &servlet) const
Definition: SiteLocalConfigService.cc:160
edm::service::SiteLocalConfigService::m_enablePrefetching
bool m_enablePrefetching
Definition: SiteLocalConfigService.h:81
edm::service::SiteLocalConfigService::m_connected
bool m_connected
Definition: SiteLocalConfigService.h:65
edm::service::SiteLocalConfigService::m_url
std::string m_url
Definition: SiteLocalConfigService.h:61
edm::propagate_const< struct addrinfo * >
edm::service::SiteLocalConfigService::enablePrefetching
bool enablePrefetching() const override
Definition: SiteLocalConfigService.cc:243
edm::service::SiteLocalConfigService::m_cacheMinFree
double m_cacheMinFree
Definition: SiteLocalConfigService.h:68
edm::service::SiteLocalConfigService::sourceCacheHint
std::string const * sourceCacheHint() const override
Definition: SiteLocalConfigService.cc:233
edm::service::SiteLocalConfigService::sourceCacheTempDir
std::string const * sourceCacheTempDir() const override
Definition: SiteLocalConfigService.cc:229
edm::service::SiteLocalConfigService
Definition: SiteLocalConfigService.h:29
edm::service::SiteLocalConfigService::m_statisticsInfoAvail
bool m_statisticsInfoAvail
Definition: SiteLocalConfigService.h:89
edm::service::SiteLocalConfigService::m_timeoutPtr
unsigned int const * m_timeoutPtr
Definition: SiteLocalConfigService.h:79
edm::service::SiteLocalConfigService::m_cacheTempDirPtr
std::string const * m_cacheTempDirPtr
Definition: SiteLocalConfigService.h:67
edm::service::SiteLocalConfigService::~SiteLocalConfigService
~SiteLocalConfigService() override
Definition: SiteLocalConfigService.cc:137
edm::service::SiteLocalConfigService::m_frontierConnect
std::string m_frontierConnect
Definition: SiteLocalConfigService.h:63
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::service::SiteLocalConfigService::parse
void parse(std::string const &url)
Definition: SiteLocalConfigService.cc:263
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::service::SiteLocalConfigService::m_readHint
std::string m_readHint
Definition: SiteLocalConfigService.h:74
edm::service::SiteLocalConfigService::sourceCloneCacheHint
std::string const * sourceCloneCacheHint() const override
Definition: SiteLocalConfigService.cc:235
edm::ParameterSet
Definition: ParameterSet.h:36
ParameterSet
Definition: Functions.h:16
edm::service::SiteLocalConfigService::m_cacheMinFreePtr
double const * m_cacheMinFreePtr
Definition: SiteLocalConfigService.h:69
edm::service::SiteLocalConfigService::sourceCacheMinFree
double const * sourceCacheMinFree() const override
Definition: SiteLocalConfigService.cc:231
edm::service::SiteLocalConfigService::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: SiteLocalConfigService.cc:442
edm::service::SiteLocalConfigService::m_siteName
std::string m_siteName
Definition: SiteLocalConfigService.h:90
edm::service::SiteLocalConfigService::statisticsDestination
struct addrinfo const * statisticsDestination() const override
Definition: SiteLocalConfigService.cc:253
edm::service::SiteLocalConfigService::m_statisticsDefaultPort
static const std::string m_statisticsDefaultPort
Definition: SiteLocalConfigService.h:87
edm::service::SiteLocalConfigService::m_cloneCacheHintPtr
std::string const * m_cloneCacheHintPtr
Definition: SiteLocalConfigService.h:73
edm::service::SiteLocalConfigService::sourceTimeout
unsigned int const * sourceTimeout() const override
Definition: SiteLocalConfigService.cc:241
edm::service::SiteLocalConfigService::m_cacheTempDir
std::string m_cacheTempDir
Definition: SiteLocalConfigService.h:66
ConfigurationDescriptions
edm::service::SiteLocalConfigService::m_nativeProtocolsPtr
std::vector< std::string > const * m_nativeProtocolsPtr
Definition: SiteLocalConfigService.h:84
edm::service::SiteLocalConfigService::m_ttreeCacheSize
unsigned int m_ttreeCacheSize
Definition: SiteLocalConfigService.h:76
edm::service::SiteLocalConfigService::m_cloneCacheHint
std::string m_cloneCacheHint
Definition: SiteLocalConfigService.h:72
edm::service::SiteLocalConfigService::m_dataCatalogs
std::vector< std::string > m_dataCatalogs
Definition: SiteLocalConfigService.h:62
edm::SiteLocalConfig
Definition: SiteLocalConfig.h:28
edm::service::SiteLocalConfigService::m_statisticsDestination
std::string m_statisticsDestination
Definition: SiteLocalConfigService.h:85
edm::service::SiteLocalConfigService::lookupCalibConnect
const std::string lookupCalibConnect(std::string const &input) const override
Definition: SiteLocalConfigService.cc:191
edm::service::SiteLocalConfigService::sourceReadHint
std::string const * sourceReadHint() const override
Definition: SiteLocalConfigService.cc:237
edm::service::SiteLocalConfigService::m_enablePrefetchingPtr
bool const * m_enablePrefetchingPtr
Definition: SiteLocalConfigService.h:82
edm::service::SiteLocalConfigService::sourceNativeProtocols
std::vector< std::string > const * sourceNativeProtocols() const override
Definition: SiteLocalConfigService.cc:249
edm::service::SiteLocalConfigService::m_debugLevel
unsigned int m_debugLevel
Definition: SiteLocalConfigService.h:80
edm::service::SiteLocalConfigService::rfioType
const std::string rfioType(void) const override
Definition: SiteLocalConfigService.cc:227
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
SiteLocalConfig.h
edm::service::SiteLocalConfigService::m_statisticsAddrInfo
edm::propagate_const< struct addrinfo * > m_statisticsAddrInfo
Definition: SiteLocalConfigService.h:86