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);
47 if (!success and !eptr) {
58 ex <<
"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"));
ParameterDescriptionNode * ifValue(ParameterDescription< T > const &switchParameter, std::unique_ptr< ParameterDescriptionCases< T >> cases)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
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{})
std::optional< edm::WaitingTaskWithArenaHolder > holder_
static void fillBasePSetDescription(edm::ParameterSetDescription &desc, bool allowRetry=true)
T getParameter(std::string const &) const
std::unique_ptr< SonicDispatcher > dispatcher_
std::string fullDebugName_