CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
static const std::string m_statisticsDefaultPort
unsigned int const * sourceTTreeCacheSize() const override
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:98
std::string const & siteName() const override
struct addrinfo const * statisticsDestination() const override
std::vector< std::string > m_dataCatalogs
std::string const * sourceReadHint() const override
std::vector< std::string > const * m_nativeProtocolsPtr
static std::string const input
Definition: EdmProvDump.cc:47
std::string const * sourceCacheTempDir() const override
edm::propagate_const< struct addrinfo * > m_statisticsAddrInfo
std::vector< std::string > const & dataCatalogs(void) const override
std::string const rfioType(void) const override
std::string const & localConnectPrefix() const override
std::string const * sourceCacheHint() const override
std::string const * sourceCloneCacheHint() const override
std::vector< std::string > const * sourceNativeProtocols() const override
std::vector< std::string > m_nativeProtocols
unsigned int const * sourceTimeout() const override
double const * sourceCacheMinFree() const override
std::set< std::string > const * statisticsInfo() const override
unsigned int debugLevel() const override
std::string const & localConnectSuffix() const override
SiteLocalConfigService(ParameterSet const &pset)
std::string const frontierConnect(std::string const &servlet) const
std::string const lookupCalibConnect(std::string const &input) const override