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
static void fillDescriptions(ConfigurationDescriptions &descriptions)
struct addrinfo const * statisticsDestination() const override
static const std::string m_statisticsDefaultPort
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:98
std::string const * sourceCacheHint() const override
std::string const * sourceReadHint() const override
std::vector< std::string > const & dataCatalogs(void) const override
unsigned int const * sourceTimeout() const override
std::vector< std::string > m_dataCatalogs
std::vector< std::string > const * sourceNativeProtocols() const override
std::vector< std::string > const * m_nativeProtocolsPtr
std::string const * sourceCacheTempDir() const override
static std::string const input
Definition: EdmProvDump.cc:47
std::string const & localConnectPrefix() const override
edm::propagate_const< struct addrinfo * > m_statisticsAddrInfo
std::string const rfioType(void) const override
std::string const frontierConnect(std::string const &servlet) const
std::vector< std::string > m_nativeProtocols
unsigned int const * sourceTTreeCacheSize() const override
std::string const & localConnectSuffix() const override
unsigned int debugLevel() const override
SiteLocalConfigService(ParameterSet const &pset)
std::set< std::string > const * statisticsInfo() const override
double const * sourceCacheMinFree() const override
HLT enums.
std::string const * sourceCloneCacheHint() const override
std::string const lookupCalibConnect(std::string const &input) const override
std::string const & siteName() const override