#include <StatisticsSenderService.h>
Classes | |
struct | FileInfo |
class | FileStatistics |
Public Member Functions | |
void | closedFile (std::string const &lfn, bool usedFallback) |
void | openingFile (std::string const &lfn, edm::InputType type, size_t size=-1) |
void | setCurrentServer (const std::string &urlOrLfn, const std::string &servername) |
void | setSize (const std::string &urlOrLfn, size_t size) |
StatisticsSenderService (edm::ParameterSet const &pset, edm::ActivityRegistry &ar) | |
Static Public Member Functions | |
static const char * | getJobID () |
static bool | getX509Subject (std::string &) |
Private Member Functions | |
void | cleanupOldFiles () |
void | determineHostnames () |
void | filePostCloseEvent (std::string const &lfn, bool usedFallback) |
void | fillUDP (const std::string &site, const FileInfo &fileinfo, bool, std::string &) const |
std::string const * | matchedLfn (std::string const &iURL) |
Private Attributes | |
std::string | m_clientdomain |
std::string | m_clienthost |
size_t | m_counter |
const bool | m_debug |
FileStatistics | m_filestats |
std::string | m_guid |
tbb::concurrent_unordered_map< std::string, FileInfo > | m_lfnToFileInfo |
std::mutex | m_servermutex |
tbb::concurrent_unordered_map< std::string, std::string > | m_urlToLfn |
std::string | m_userdn |
Definition at line 19 of file StatisticsSenderService.h.
StatisticsSenderService::StatisticsSenderService | ( | edm::ParameterSet const & | pset, |
edm::ActivityRegistry & | ar | ||
) |
Definition at line 168 of file StatisticsSenderService.cc.
References determineHostnames(), filePostCloseEvent(), getX509Subject(), m_userdn, and edm::ActivityRegistry::watchPostCloseFile().
|
private |
Definition at line 312 of file StatisticsSenderService.cc.
References m_lfnToFileInfo, and m_urlToLfn.
Referenced by filePostCloseEvent().
void StatisticsSenderService::closedFile | ( | std::string const & | lfn, |
bool | usedFallback | ||
) |
Definition at line 259 of file StatisticsSenderService.cc.
References EnergyCorrector::c, fillUDP(), runEdmFileComparison::found, info(), edm::Service< T >::isAvailable(), m_debug, m_lfnToFileInfo, m_userdn, matchedLfn(), edm::SiteLocalConfig::siteName(), edm::SiteLocalConfig::statisticsDestination(), edm::SiteLocalConfig::statisticsInfo(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::RootInputFileSequence::closeFile().
|
private |
Definition at line 358 of file StatisticsSenderService.cc.
References HOST_NAME_MAX, m_clientdomain, and m_clienthost.
Referenced by StatisticsSenderService().
|
private |
Definition at line 352 of file StatisticsSenderService.cc.
References cleanupOldFiles(), m_filestats, and edm::storage::StatisticsSenderService::FileStatistics::update().
Referenced by StatisticsSenderService().
|
private |
Definition at line 375 of file StatisticsSenderService.cc.
References edm::storage::StatisticsSenderService::FileStatistics::fillUDP(), getJobID(), m_clientdomain, m_clienthost, edm::storage::StatisticsSenderService::FileInfo::m_filelfn, m_filestats, m_guid, edm::storage::StatisticsSenderService::FileInfo::m_id, edm::storage::StatisticsSenderService::FileInfo::m_serverdomain, edm::storage::StatisticsSenderService::FileInfo::m_serverhost, edm::storage::StatisticsSenderService::FileInfo::m_size, edm::storage::StatisticsSenderService::FileInfo::m_type, m_userdn, edm::Primary, edm::SecondaryFile, and edm::SecondarySource.
Referenced by closedFile().
|
static |
Definition at line 183 of file StatisticsSenderService.cc.
References JOB_UNIQUE_ID_ENV, and JOB_UNIQUE_ID_ENV_V2.
Referenced by fillUDP(), and SendMonitoringInfo().
|
static |
Definition at line 537 of file StatisticsSenderService.cc.
References corrVsCorr::filename, getX509SubjectFromFile(), and mps_fire::result.
Referenced by StatisticsSenderService().
|
private |
Definition at line 189 of file StatisticsSenderService.cc.
References runEdmFileComparison::found, m_lfnToFileInfo, m_urlToLfn, and findQualityFiles::v.
Referenced by closedFile(), setCurrentServer(), and setSize().
void StatisticsSenderService::openingFile | ( | std::string const & | lfn, |
edm::InputType | type, | ||
size_t | size = -1 |
||
) |
Definition at line 246 of file StatisticsSenderService.cc.
References m_counter, m_lfnToFileInfo, m_urlToLfn, and findQualityFiles::size.
Referenced by edm::RootInputFileSequence::initTheFile().
void StatisticsSenderService::setCurrentServer | ( | const std::string & | urlOrLfn, |
const std::string & | servername | ||
) |
Definition at line 217 of file StatisticsSenderService.cc.
References runEdmFileComparison::found, m_debug, m_lfnToFileInfo, m_servermutex, matchedLfn(), eostools::move(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by XrdAdaptor::RequestManager::updateCurrentServer().
void StatisticsSenderService::setSize | ( | const std::string & | urlOrLfn, |
size_t | size | ||
) |
Definition at line 340 of file StatisticsSenderService.cc.
References m_debug, m_lfnToFileInfo, matchedLfn(), and findQualityFiles::size.
Referenced by TStorageFactoryFile::Initialize().
|
private |
Definition at line 78 of file StatisticsSenderService.h.
Referenced by determineHostnames(), and fillUDP().
|
private |
Definition at line 77 of file StatisticsSenderService.h.
Referenced by determineHostnames(), and fillUDP().
|
private |
Definition at line 83 of file StatisticsSenderService.h.
Referenced by openingFile().
|
private |
Definition at line 86 of file StatisticsSenderService.h.
Referenced by closedFile(), setCurrentServer(), and setSize().
|
private |
Definition at line 81 of file StatisticsSenderService.h.
Referenced by filePostCloseEvent(), and fillUDP().
|
private |
Definition at line 82 of file StatisticsSenderService.h.
Referenced by fillUDP().
|
private |
Definition at line 79 of file StatisticsSenderService.h.
Referenced by cleanupOldFiles(), closedFile(), matchedLfn(), openingFile(), setCurrentServer(), and setSize().
|
private |
Definition at line 85 of file StatisticsSenderService.h.
Referenced by setCurrentServer().
|
private |
Definition at line 80 of file StatisticsSenderService.h.
Referenced by cleanupOldFiles(), matchedLfn(), and openingFile().
|
private |
Definition at line 84 of file StatisticsSenderService.h.
Referenced by closedFile(), fillUDP(), and StatisticsSenderService().