CMS 3D CMS Logo

StatisticsSenderService.h
Go to the documentation of this file.
1 
2 #ifndef Utilities_StorageFactory_StatisticsSenderService_H
3 #define Utilities_StorageFactory_StatisticsSenderService_H
4 
5 #include <string>
6 #include <sstream>
7 #include <atomic>
8 #include <mutex>
9 
10 namespace edm {
11 
12  class ParameterSet;
13  class ActivityRegistry;
14 
15  namespace storage {
16 
18  public:
20 
21  void setSize(size_t size);
22  void setCurrentServer(const std::string &servername);
23  void filePreCloseEvent(std::string const &lfn, bool usedFallback);
24  static const char *getJobID();
25  static bool getX509Subject(std::string &);
26 
27  private:
29  public:
31  void fillUDP(std::ostringstream &os);
32 
33  private:
42  time_t m_start_time;
43  };
44 
45  void determineHostnames(void);
46  void fillUDP(const std::string &, bool, std::string &);
54  size_t m_counter;
55  std::atomic<ssize_t> m_size;
58  };
59 
60  } // namespace storage
61 } // namespace edm
62 
63 #endif
void setCurrentServer(const std::string &servername)
size
Write out results.
static boost::mutex mutex
Definition: Proxy.cc:9
void filePreCloseEvent(std::string const &lfn, bool usedFallback)
HLT enums.
StatisticsSenderService(edm::ParameterSet const &pset, edm::ActivityRegistry &ar)