#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 | 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::string | pid_ |
std::unordered_map < std::string, Server > | servers_ |
bool | startedFallback_ |
std::unordered_map < std::string, Model > | unservedModels_ |
bool | verbose_ |
Definition at line 27 of file TritonService.h.
TritonService::TritonService | ( | const edm::ParameterSet & | pset, |
edm::ActivityRegistry & | areg | ||
) |
Definition at line 54 of file TritonService.cc.
References HLTObjectMonitor_Client_cff::client, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackAddress, TritonService::Server::fallbackName, fallbackOpts_, edm::ParameterSet::getUntrackedParameterSetVector(), LocalCPU, LocalGPU, models_, mps_check::msg, postModuleConstruction(), preBeginJob(), preModuleConstruction(), preModuleDestruction(), Remote, contentValuesFiles::server, servers_, AlCaHLTBitMon_QueryRunRegistry::string, triton_utils::throwIfError(), tier0::unique(), TritonService::FallbackOpts::useGPU, 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 140 of file TritonService.cc.
References allowAddModel_, currentModuleId_, Exception, models_, modules_, and unservedModels_.
Referenced by TritonEDFilterT< G, Capabilities >::initializeGlobalCache(), TritonEDProducerT< G, Capabilities >::initializeGlobalCache(), and TritonOneEDAnalyzer< Capabilities >::TritonOneEDAnalyzer().
|
static |
Definition at line 282 of file TritonService.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::addVPSetUntracked(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 110 of file TritonService.h.
References pid_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 154 of file TritonService.cc.
References allowAddModel_.
Referenced by TritonService().
|
private |
Definition at line 199 of file TritonService.cc.
References mps_check::command, edm::createGlobalIdentifier(), TritonService::FallbackOpts::debug, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackName, fallbackOpts_, if(), TritonService::FallbackOpts::imageName, TritonService::FallbackOpts::instanceName, isotrackApplyRegressor::model, models_, mps_check::msg, or, convertSQLitetoXML_cfg::output, pid_, TritonService::FallbackOpts::retries, TritonService::FallbackOpts::sandboxName, contentValuesFiles::server, 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 135 of file TritonService.cc.
References allowAddModel_, currentModuleId_, and edm::ModuleDescription::id().
Referenced by TritonService().
|
private |
Definition at line 156 of file TritonService.cc.
References edm::ModuleDescription::id(), modules_, and unservedModels_.
Referenced by TritonService().
TritonService::Server TritonService::serverInfo | ( | const std::string & | model, |
const std::string & | preferred = "" |
||
) | const |
Definition at line 177 of file TritonService.cc.
References isotrackApplyRegressor::model, models_, contentValuesFiles::server, and servers_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 123 of file TritonService.h.
Referenced by addModel(), postModuleConstruction(), and preModuleConstruction().
|
private |
Definition at line 122 of file TritonService.h.
Referenced by addModel(), and preModuleConstruction().
|
private |
Definition at line 121 of file TritonService.h.
Referenced by preBeginJob(), and TritonService().
|
private |
Definition at line 129 of file TritonService.h.
Referenced by addModel(), preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 130 of file TritonService.h.
Referenced by addModel(), and preModuleDestruction().
|
private |
Definition at line 125 of file TritonService.h.
Referenced by pid(), and preBeginJob().
|
private |
Definition at line 128 of file TritonService.h.
Referenced by preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 124 of file TritonService.h.
Referenced by preBeginJob().
|
private |
Definition at line 126 of file TritonService.h.
Referenced by addModel(), preBeginJob(), and preModuleDestruction().
|
private |
Definition at line 120 of file TritonService.h.
Referenced by preBeginJob(), and TritonService().