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  bool useLocalConnectString() const override;
51  std::string const& localConnectPrefix() const override;
52  std::string const& localConnectSuffix() const override;
53 
54  // implicit copy constructor
55  // implicit assignment operator
56  ~SiteLocalConfigService() override;
57 
58  static void fillDescriptions(ConfigurationDescriptions& descriptions);
59 
60  private:
61  void parse(std::string const& url);
63  std::string const frontierConnect(std::string const& servlet) const;
65  std::vector<std::string> m_dataCatalogs;
72  double const* m_cacheMinFreePtr;
79  unsigned int m_ttreeCacheSize;
80  unsigned int const* m_ttreeCacheSizePtr;
81  unsigned int m_timeout;
82  unsigned int const* m_timeoutPtr;
83  unsigned int m_debugLevel;
86  std::vector<std::string> m_nativeProtocols;
87  std::vector<std::string> const* m_nativeProtocolsPtr;
91  std::set<std::string> m_statisticsInfo;
97  };
98 
99  inline bool isProcessWideService(SiteLocalConfigService const*) { return true; }
100  } // namespace service
101 } // namespace edm
102 
103 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
104 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
105 
106 #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:86
relmon_authenticated_wget.url
url
Definition: relmon_authenticated_wget.py:22
input
static const std::string input
Definition: EdmProvDump.cc:48
edm::service::SiteLocalConfigService::localConnectPrefix
std::string const & localConnectPrefix() const override
Definition: SiteLocalConfigService.cc:272
edm::service::SiteLocalConfigService::m_cacheHintPtr
std::string const * m_cacheHintPtr
Definition: SiteLocalConfigService.h:74
edm::service::SiteLocalConfigService::m_statisticsInfo
std::set< std::string > m_statisticsInfo
Definition: SiteLocalConfigService.h:91
edm::service::SiteLocalConfigService::useLocalConnectString
bool useLocalConnectString() const override
Definition: SiteLocalConfigService.cc:271
propagate_const.h
edm::service::SiteLocalConfigService::computeStatisticsDestination
void computeStatisticsDestination()
Definition: SiteLocalConfigService.cc:452
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::service::SiteLocalConfigService::m_rfioType
std::string m_rfioType
Definition: SiteLocalConfigService.h:67
edm::service::SiteLocalConfigService::m_ttreeCacheSizePtr
unsigned int const * m_ttreeCacheSizePtr
Definition: SiteLocalConfigService.h:80
edm::service::SiteLocalConfigService::debugLevel
unsigned int debugLevel() const override
Definition: SiteLocalConfigService.cc:256
edm::service::SiteLocalConfigService::m_readHintPtr
std::string const * m_readHintPtr
Definition: SiteLocalConfigService.h:78
edm::service::SiteLocalConfigService::siteName
std::string const & siteName() const override
Definition: SiteLocalConfigService.cc:270
edm::service::SiteLocalConfigService::m_cacheHint
std::string m_cacheHint
Definition: SiteLocalConfigService.h:73
edm::service::SiteLocalConfigService::dataCatalogs
std::vector< std::string > const & dataCatalogs(void) const override
Definition: SiteLocalConfigService.cc:153
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:266
edm::service::SiteLocalConfigService::m_timeout
unsigned int m_timeout
Definition: SiteLocalConfigService.h:81
edm::service::SiteLocalConfigService::sourceTTreeCacheSize
unsigned int const * sourceTTreeCacheSize() const override
Definition: SiteLocalConfigService.cc:248
edm::service::SiteLocalConfigService::frontierConnect
const std::string frontierConnect(std::string const &servlet) const
Definition: SiteLocalConfigService.cc:169
edm::service::SiteLocalConfigService::m_enablePrefetching
bool m_enablePrefetching
Definition: SiteLocalConfigService.h:84
edm::service::SiteLocalConfigService::m_connected
bool m_connected
Definition: SiteLocalConfigService.h:68
edm::service::SiteLocalConfigService::m_url
std::string m_url
Definition: SiteLocalConfigService.h:64
edm::propagate_const< struct addrinfo * >
edm::service::SiteLocalConfigService::enablePrefetching
bool enablePrefetching() const override
Definition: SiteLocalConfigService.cc:252
edm::service::SiteLocalConfigService::m_cacheMinFree
double m_cacheMinFree
Definition: SiteLocalConfigService.h:71
edm::service::SiteLocalConfigService::m_useLocalConnectString
bool m_useLocalConnectString
Definition: SiteLocalConfigService.h:94
edm::service::SiteLocalConfigService::sourceCacheHint
std::string const * sourceCacheHint() const override
Definition: SiteLocalConfigService.cc:242
edm::service::SiteLocalConfigService::sourceCacheTempDir
std::string const * sourceCacheTempDir() const override
Definition: SiteLocalConfigService.cc:238
edm::service::SiteLocalConfigService
Definition: SiteLocalConfigService.h:29
edm::service::SiteLocalConfigService::m_statisticsInfoAvail
bool m_statisticsInfoAvail
Definition: SiteLocalConfigService.h:92
edm::service::SiteLocalConfigService::m_timeoutPtr
unsigned int const * m_timeoutPtr
Definition: SiteLocalConfigService.h:82
edm::service::SiteLocalConfigService::m_cacheTempDirPtr
std::string const * m_cacheTempDirPtr
Definition: SiteLocalConfigService.h:70
edm::service::SiteLocalConfigService::~SiteLocalConfigService
~SiteLocalConfigService() override
Definition: SiteLocalConfigService.cc:146
edm::service::SiteLocalConfigService::m_frontierConnect
std::string m_frontierConnect
Definition: SiteLocalConfigService.h:66
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::service::SiteLocalConfigService::parse
void parse(std::string const &url)
Definition: SiteLocalConfigService.cc:275
edm::service::SiteLocalConfigService::m_readHint
std::string m_readHint
Definition: SiteLocalConfigService.h:77
edm::service::SiteLocalConfigService::sourceCloneCacheHint
std::string const * sourceCloneCacheHint() const override
Definition: SiteLocalConfigService.cc:244
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
edm::service::SiteLocalConfigService::m_cacheMinFreePtr
double const * m_cacheMinFreePtr
Definition: SiteLocalConfigService.h:72
edm::service::SiteLocalConfigService::sourceCacheMinFree
double const * sourceCacheMinFree() const override
Definition: SiteLocalConfigService.cc:240
edm::service::SiteLocalConfigService::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: SiteLocalConfigService.cc:471
edm::service::SiteLocalConfigService::m_siteName
std::string m_siteName
Definition: SiteLocalConfigService.h:93
edm::service::SiteLocalConfigService::statisticsDestination
struct addrinfo const * statisticsDestination() const override
Definition: SiteLocalConfigService.cc:262
edm::service::SiteLocalConfigService::m_statisticsDefaultPort
static const std::string m_statisticsDefaultPort
Definition: SiteLocalConfigService.h:90
edm::service::SiteLocalConfigService::m_cloneCacheHintPtr
std::string const * m_cloneCacheHintPtr
Definition: SiteLocalConfigService.h:76
edm::service::SiteLocalConfigService::sourceTimeout
unsigned int const * sourceTimeout() const override
Definition: SiteLocalConfigService.cc:250
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::service::SiteLocalConfigService::m_cacheTempDir
std::string m_cacheTempDir
Definition: SiteLocalConfigService.h:69
ConfigurationDescriptions
edm::service::SiteLocalConfigService::m_nativeProtocolsPtr
std::vector< std::string > const * m_nativeProtocolsPtr
Definition: SiteLocalConfigService.h:87
edm::service::SiteLocalConfigService::m_ttreeCacheSize
unsigned int m_ttreeCacheSize
Definition: SiteLocalConfigService.h:79
edm::service::SiteLocalConfigService::m_cloneCacheHint
std::string m_cloneCacheHint
Definition: SiteLocalConfigService.h:75
edm::service::SiteLocalConfigService::m_dataCatalogs
std::vector< std::string > m_dataCatalogs
Definition: SiteLocalConfigService.h:65
edm::service::SiteLocalConfigService::localConnectSuffix
std::string const & localConnectSuffix() const override
Definition: SiteLocalConfigService.cc:273
edm::service::SiteLocalConfigService::m_localConnectPrefix
std::string m_localConnectPrefix
Definition: SiteLocalConfigService.h:95
edm::SiteLocalConfig
Definition: SiteLocalConfig.h:28
edm::service::SiteLocalConfigService::m_statisticsDestination
std::string m_statisticsDestination
Definition: SiteLocalConfigService.h:88
edm::service::SiteLocalConfigService::lookupCalibConnect
const std::string lookupCalibConnect(std::string const &input) const override
Definition: SiteLocalConfigService.cc:200
edm::service::SiteLocalConfigService::sourceReadHint
std::string const * sourceReadHint() const override
Definition: SiteLocalConfigService.cc:246
edm::service::SiteLocalConfigService::m_enablePrefetchingPtr
bool const * m_enablePrefetchingPtr
Definition: SiteLocalConfigService.h:85
edm::service::SiteLocalConfigService::sourceNativeProtocols
std::vector< std::string > const * sourceNativeProtocols() const override
Definition: SiteLocalConfigService.cc:258
edm::service::SiteLocalConfigService::m_debugLevel
unsigned int m_debugLevel
Definition: SiteLocalConfigService.h:83
edm::service::SiteLocalConfigService::rfioType
const std::string rfioType(void) const override
Definition: SiteLocalConfigService.cc:236
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:89
edm::service::SiteLocalConfigService::m_localConnectSuffix
std::string m_localConnectSuffix
Definition: SiteLocalConfigService.h:96