8 : allowedTries_(
params.getUntrackedParameter<unsigned>(
"allowedTries", 0)),
10 clientName_(clientName),
11 fullDebugName_(debugName_) {
16 if (modeName ==
"Sync")
18 else if (modeName ==
"Async")
20 else if (modeName ==
"PseudoAsync")
23 throw cms::Exception(
"Configuration") <<
"Unknown mode for SonicClient: " << modeName;
33 dispatcher_ = std::make_unique<SonicDispatcher>(
this);
35 dispatcher_ = std::make_unique<SonicDispatcherPseudoAsync>(
this);
58 ex <<
"SonicCallFailed: call failed after max " <<
tries_ <<
" tries";
59 eptr = make_exception_ptr(ex);
66 std::rethrow_exception(eptr);
76 edm::allowedValues<std::string>(
"Sync",
"Async",
"PseudoAsync"));
78 desc.addUntracked<
unsigned>(
"allowedTries", 0);
79 desc.addUntracked<
bool>(
"verbose",
false);
SonicClientBase(const edm::ParameterSet ¶ms, const std::string &debugName, const std::string &clientName)
virtual void evaluate()=0
void setMode(SonicMode mode)
void finish(bool success, std::exception_ptr eptr=std::exception_ptr{})
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
std::optional< edm::WaitingTaskWithArenaHolder > holder_
static void fillBasePSetDescription(edm::ParameterSetDescription &desc, bool allowRetry=true)
std::unique_ptr< SonicDispatcher > dispatcher_
std::string fullDebugName_