MCPcopy Create free account
hub / github.com/Tencent/phxqueue / NewSchedulerConfig

Method NewSchedulerConfig

phxqueue_phxrpc/plugin/configfactory.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92unique_ptr<phxqueue::config::SchedulerConfig>
93ConfigFactory::NewSchedulerConfig(const int topic_id, const string &path) {
94 QLVerb("topic_id %d path %s", topic_id, path.c_str());
95
96 auto &&conf(new config::SchedulerConfig());
97 conf->SetNeedCheck(impl_->need_check);
98 conf->SetFileIfUnset(path);
99 if (conf) conf->LoadIfModified();
100
101 return unique_ptr<config::SchedulerConfig>(conf);
102}
103
104unique_ptr<phxqueue::config::LockConfig>
105ConfigFactory::NewLockConfig(const int topic_id, const string &path) {

Callers

nothing calls this directly

Calls 3

SetFileIfUnsetMethod · 0.80
LoadIfModifiedMethod · 0.80
SetNeedCheckMethod · 0.45

Tested by

no test coverage detected