#include <TritonService.h>
Classes | |
struct | FallbackOpts |
struct | Model |
struct | Module |
struct | Server |
Public Member Functions | |
void | addModel (const std::string &modelName, const std::string &path) |
std::pair< std::string, bool > | serverAddress (const std::string &model, const std::string &preferred="") const |
TritonService (const edm::ParameterSet &pset, edm::ActivityRegistry &areg) | |
~TritonService ()=default | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | postModuleConstruction (edm::ModuleDescription const &) |
void | preBeginJob (edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &) |
void | preModuleConstruction (edm::ModuleDescription const &) |
void | preModuleDestruction (edm::ModuleDescription const &) |
Private Attributes | |
bool | allowAddModel_ |
unsigned | currentModuleId_ |
FallbackOpts | fallbackOpts_ |
std::unordered_map< std::string, Model > | models_ |
std::unordered_map< unsigned, Module > | modules_ |
std::unordered_map< std::string, Server > | servers_ |
bool | startedFallback_ |
std::unordered_map< std::string, Model > | unservedModels_ |
bool | verbose_ |
Definition at line 22 of file TritonService.h.
TritonService::TritonService | ( | const edm::ParameterSet & | pset, |
edm::ActivityRegistry & | areg | ||
) |
Definition at line 56 of file TritonService.cc.
References HLTObjectMonitor_Client_cff::client, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackAddress, TritonService::Server::fallbackName, fallbackOpts_, HLTEgPhaseIITestSequence_cff::modelName, models_, mps_check::msg, postModuleConstruction(), preBeginJob(), preModuleConstruction(), preModuleDestruction(), muonDTDigis_cfi::pset, servers_, AlCaHLTBitMon_QueryRunRegistry::string, triton_utils::throwIfError(), tier0::unique(), verbose_, edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPreBeginJob(), edm::ActivityRegistry::watchPreModuleConstruction(), and edm::ActivityRegistry::watchPreModuleDestruction().
|
default |
void TritonService::addModel | ( | const std::string & | modelName, |
const std::string & | path | ||
) |
Definition at line 124 of file TritonService.cc.
References allowAddModel_, currentModuleId_, Exception, HLTEgPhaseIITestSequence_cff::modelName, models_, modules_, castor_dqm_sourceclient_file_cfg::path, and unservedModels_.
Referenced by TritonEDFilterT< G, Capabilities >::initializeGlobalCache(), TritonEDProducerT< G, Capabilities >::initializeGlobalCache(), and TritonOneEDAnalyzer< Capabilities >::TritonOneEDAnalyzer().
|
static |
Definition at line 269 of file TritonService.cc.
References edm::ParameterSetDescription::addUntracked(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 138 of file TritonService.cc.
References allowAddModel_.
Referenced by TritonService().
|
private |
Definition at line 185 of file TritonService.cc.
References mps_check::command, edm::createGlobalIdentifier(), TritonService::FallbackOpts::debug, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackName, fallbackOpts_, if(), TritonService::FallbackOpts::instanceName, ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, HLTEgPhaseIITestSequence_cff::modelName, models_, mps_check::msg, or, convertSQLitetoXML_cfg::output, TritonService::FallbackOpts::retries, servers_, startedFallback_, AlCaHLTBitMon_QueryRunRegistry::string, TritonService::FallbackOpts::tempDir, unservedModels_, TritonService::FallbackOpts::useDocker, TritonService::FallbackOpts::useGPU, TritonService::FallbackOpts::verbose, verbose_, and TritonService::FallbackOpts::wait.
Referenced by TritonService().
|
private |
Definition at line 119 of file TritonService.cc.
References allowAddModel_, currentModuleId_, and submitPVResolutionJobs::desc.
Referenced by TritonService().
|
private |
Definition at line 140 of file TritonService.cc.
References submitPVResolutionJobs::desc, modules_, and unservedModels_.
Referenced by TritonService().
std::pair< std::string, bool > TritonService::serverAddress | ( | const std::string & | model, |
const std::string & | preferred = "" |
||
) | const |
Definition at line 161 of file TritonService.cc.
References fallbackOpts_, ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, models_, servers_, and TritonService::FallbackOpts::useGPU.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 95 of file TritonService.h.
Referenced by addModel(), postModuleConstruction(), and preModuleConstruction().
|
private |
Definition at line 94 of file TritonService.h.
Referenced by addModel(), and preModuleConstruction().
|
private |
Definition at line 93 of file TritonService.h.
Referenced by preBeginJob(), serverAddress(), and TritonService().
|
private |
Definition at line 100 of file TritonService.h.
Referenced by addModel(), preBeginJob(), serverAddress(), and TritonService().
|
private |
Definition at line 101 of file TritonService.h.
Referenced by addModel(), and preModuleDestruction().
|
private |
Definition at line 99 of file TritonService.h.
Referenced by preBeginJob(), serverAddress(), and TritonService().
|
private |
Definition at line 96 of file TritonService.h.
Referenced by preBeginJob().
|
private |
Definition at line 97 of file TritonService.h.
Referenced by addModel(), preBeginJob(), and preModuleDestruction().
|
private |
Definition at line 92 of file TritonService.h.
Referenced by preBeginJob(), and TritonService().