test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  private:
27 
29  public:
31  void fillUDP(std::ostringstream &os);
32  private:
41  time_t m_start_time;
42  };
43 
44  void determineHostnames(void);
45  void fillUDP(const std::string&, bool, std::string &);
53  size_t m_counter;
54  std::atomic<ssize_t> m_size;
57  };
58 
59 
60  }
61 }
62 
63 #endif
64 
void setCurrentServer(const std::string &servername)
static boost::mutex mutex
Definition: LHEProxy.cc:11
void filePreCloseEvent(std::string const &lfn, bool usedFallback)
void fillUDP(const std::string &, bool, std::string &)
StatisticsSenderService(edm::ParameterSet const &pset, edm::ActivityRegistry &ar)
tuple size
Write out results.