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
edm::storage::StatisticsSenderService::FileStatistics::m_read_vector_bytes
ssize_t m_read_vector_bytes
Definition: StatisticsSenderService.h:38
edm::storage::StatisticsSenderService::m_filestats
FileStatistics m_filestats
Definition: StatisticsSenderService.h:52
edm::storage::StatisticsSenderService::FileStatistics
Definition: StatisticsSenderService.h:28
ActivityRegistry
edm::storage::StatisticsSenderService::FileStatistics::m_read_single_operations
ssize_t m_read_single_operations
Definition: StatisticsSenderService.h:34
edm::storage::StatisticsSenderService::m_serverhost
std::string m_serverhost
Definition: StatisticsSenderService.h:49
edm::storage::StatisticsSenderService::m_counter
size_t m_counter
Definition: StatisticsSenderService.h:54
edm::storage::StatisticsSenderService::m_servermutex
std::mutex m_servermutex
Definition: StatisticsSenderService.h:57
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::storage::StatisticsSenderService::m_size
std::atomic< ssize_t > m_size
Definition: StatisticsSenderService.h:55
edm::storage::StatisticsSenderService::filePreCloseEvent
void filePreCloseEvent(std::string const &lfn, bool usedFallback)
Definition: StatisticsSenderService.cc:174
edm::storage::StatisticsSenderService::FileStatistics::m_read_single_bytes
ssize_t m_read_single_bytes
Definition: StatisticsSenderService.h:35
edm::storage::StatisticsSenderService::getX509Subject
static bool getX509Subject(std::string &)
Definition: StatisticsSenderService.cc:375
edm::storage::StatisticsSenderService::m_serverdomain
std::string m_serverdomain
Definition: StatisticsSenderService.h:50
edm::storage::StatisticsSenderService::FileStatistics::m_start_time
time_t m_start_time
Definition: StatisticsSenderService.h:42
edm::storage::StatisticsSenderService::FileStatistics::m_read_vector_count_sum
ssize_t m_read_vector_count_sum
Definition: StatisticsSenderService.h:40
edm::storage::StatisticsSenderService::FileStatistics::FileStatistics
FileStatistics()
Definition: StatisticsSenderService.cc:35
edm::storage::StatisticsSenderService::m_guid
std::string m_guid
Definition: StatisticsSenderService.h:53
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
edm::storage::StatisticsSenderService::determineHostnames
void determineHostnames(void)
Definition: StatisticsSenderService.cc:211
mutex
static std::mutex mutex
Definition: Proxy.cc:8
edm::storage::StatisticsSenderService::FileStatistics::m_read_vector_square
ssize_t m_read_vector_square
Definition: StatisticsSenderService.h:39
edm::storage::StatisticsSenderService::fillUDP
void fillUDP(const std::string &, bool, std::string &)
Definition: StatisticsSenderService.cc:228
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::storage::StatisticsSenderService::setSize
void setSize(size_t size)
Definition: StatisticsSenderService.cc:172
edm::storage::StatisticsSenderService::FileStatistics::fillUDP
void fillUDP(std::ostringstream &os)
Definition: StatisticsSenderService.cc:46
edm::storage::StatisticsSenderService::getJobID
static const char * getJobID()
Definition: StatisticsSenderService.cc:145
edm::storage::StatisticsSenderService::FileStatistics::m_read_single_square
ssize_t m_read_single_square
Definition: StatisticsSenderService.h:36
edm::storage::StatisticsSenderService::m_clientdomain
std::string m_clientdomain
Definition: StatisticsSenderService.h:48
edm::storage::StatisticsSenderService::StatisticsSenderService
StatisticsSenderService(edm::ParameterSet const &pset, edm::ActivityRegistry &ar)
Definition: StatisticsSenderService.cc:127
edm::storage::StatisticsSenderService::FileStatistics::m_read_vector_count_square
ssize_t m_read_vector_count_square
Definition: StatisticsSenderService.h:41
edm::storage::StatisticsSenderService
Definition: StatisticsSenderService.h:17
edm::storage::StatisticsSenderService::m_userdn
std::string m_userdn
Definition: StatisticsSenderService.h:56
edm::storage::StatisticsSenderService::FileStatistics::m_read_vector_operations
ssize_t m_read_vector_operations
Definition: StatisticsSenderService.h:37
edm::storage::StatisticsSenderService::m_filelfn
std::string m_filelfn
Definition: StatisticsSenderService.h:51
edm::storage::StatisticsSenderService::m_clienthost
std::string m_clienthost
Definition: StatisticsSenderService.h:47
edm::storage::StatisticsSenderService::setCurrentServer
void setCurrentServer(const std::string &servername)
Definition: StatisticsSenderService.cc:151
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443