#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) |
const std::string & | pid () const |
Server | serverInfo (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 | postEndJob () |
void | postModuleConstruction (edm::ModuleDescription const &) |
void | preallocate (edm::service::SystemBounds const &) |
void | preBeginJob (edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &) |
void | preModuleConstruction (edm::ModuleDescription const &) |
void | preModuleDestruction (edm::ModuleDescription const &) |
template<typename LOG > | |
void | printFallbackServerLog () const |
Private Attributes | |
bool | allowAddModel_ |
unsigned | currentModuleId_ |
FallbackOpts | fallbackOpts_ |
std::unordered_map< std::string, Model > | models_ |
std::unordered_map< unsigned, Module > | modules_ |
int | numberOfThreads_ |
std::string | pid_ |
std::unordered_map< std::string, Server > | servers_ |
bool | startedFallback_ |
std::unordered_map< std::string, Model > | unservedModels_ |
bool | verbose_ |
Definition at line 30 of file TritonService.h.
TritonService::TritonService | ( | const edm::ParameterSet & | pset, |
edm::ActivityRegistry & | areg | ||
) |
Definition at line 58 of file TritonService.cc.
References HLTObjectMonitor_Client_cff::client, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackAddress, TritonService::Server::fallbackName, fallbackOpts_, LocalCPU, LocalGPU, ecalBarrelClusterFastTimer_cfi::modelName, models_, mps_check::msg, postEndJob(), postModuleConstruction(), preallocate(), preBeginJob(), preModuleConstruction(), preModuleDestruction(), muonDTDigis_cfi::pset, Remote, contentValuesFiles::server, servers_, AlCaHLTBitMon_QueryRunRegistry::string, TRITON_THROW_IF_ERROR, tier0::unique(), TritonService::FallbackOpts::useGPU, verbose_, edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPreallocate(), 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 152 of file TritonService.cc.
References allowAddModel_, currentModuleId_, Exception, ecalBarrelClusterFastTimer_cfi::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 340 of file TritonService.cc.
References edm::ParameterSetDescription::addUntracked(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 114 of file TritonService.h.
References pid_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 300 of file TritonService.cc.
References mps_check::command, TritonService::FallbackOpts::command, Exception, fallbackOpts_, convertSQLitetoXML_cfg::output, startedFallback_, AlCaHLTBitMon_QueryRunRegistry::string, and verbose_.
Referenced by TritonService().
|
private |
Definition at line 167 of file TritonService.cc.
References allowAddModel_.
Referenced by TritonService().
|
private |
Definition at line 143 of file TritonService.cc.
References numberOfThreads_.
Referenced by TritonService().
|
private |
Definition at line 212 of file TritonService.cc.
References mps_check::command, TritonService::FallbackOpts::command, edm::createGlobalIdentifier(), TritonService::FallbackOpts::debug, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackName, fallbackOpts_, caHitNtupletGeneratorKernels::if(), TritonService::FallbackOpts::imageName, TritonService::FallbackOpts::instanceName, ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, ecalBarrelClusterFastTimer_cfi::modelName, models_, mps_check::msg, numberOfThreads_, or, convertSQLitetoXML_cfg::output, pid_, TritonService::FallbackOpts::retries, TritonService::FallbackOpts::sandboxName, contentValuesFiles::server, servers_, startedFallback_, AlCaHLTBitMon_QueryRunRegistry::string, TritonService::FallbackOpts::tempDir, to_string(), unservedModels_, TritonService::FallbackOpts::useDocker, TritonService::FallbackOpts::useGPU, TritonService::FallbackOpts::verbose, verbose_, and TritonService::FallbackOpts::wait.
Referenced by TritonService().
|
private |
Definition at line 147 of file TritonService.cc.
References allowAddModel_, currentModuleId_, and submitPVResolutionJobs::desc.
Referenced by TritonService().
|
private |
Definition at line 169 of file TritonService.cc.
References submitPVResolutionJobs::desc, modules_, and unservedModels_.
Referenced by TritonService().
|
private |
Definition at line 321 of file TritonService.cc.
References fallbackOpts_, timingPdfMaker::infile, TritonService::FallbackOpts::instanceName, LOG, heppy_check::logName, and TritonService::FallbackOpts::tempDir.
TritonService::Server TritonService::serverInfo | ( | const std::string & | model, |
const std::string & | preferred = "" |
||
) | const |
Definition at line 190 of file TritonService.cc.
References ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, models_, contentValuesFiles::server, and servers_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 133 of file TritonService.h.
Referenced by addModel(), postModuleConstruction(), and preModuleConstruction().
|
private |
Definition at line 132 of file TritonService.h.
Referenced by addModel(), and preModuleConstruction().
|
private |
Definition at line 131 of file TritonService.h.
Referenced by postEndJob(), preBeginJob(), printFallbackServerLog(), and TritonService().
|
private |
Definition at line 139 of file TritonService.h.
Referenced by addModel(), preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 140 of file TritonService.h.
Referenced by addModel(), and preModuleDestruction().
|
private |
Definition at line 141 of file TritonService.h.
Referenced by preallocate(), and preBeginJob().
|
private |
Definition at line 135 of file TritonService.h.
Referenced by pid(), and preBeginJob().
|
private |
Definition at line 138 of file TritonService.h.
Referenced by preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 134 of file TritonService.h.
Referenced by postEndJob(), and preBeginJob().
|
private |
Definition at line 136 of file TritonService.h.
Referenced by addModel(), preBeginJob(), and preModuleDestruction().
|
private |
Definition at line 130 of file TritonService.h.
Referenced by postEndJob(), preBeginJob(), and TritonService().