/**
* Discover python modules from local disk
*/
- std::set<std::string> probe_modules(const std::string &path) const;
+ std::vector<std::string> probe_modules(const std::string &path) const;
PyModuleConfig module_config;
void update_kv_data(
const std::string prefix,
bool incremental,
- const map<std::string, boost::optional<bufferlist>, std::less<>>& data) {
+ const map<std::string, std::optional<bufferlist>, std::less<>>& data) {
ceph_assert(active_modules);
active_modules->update_kv_data(prefix, incremental, data);
}
}
}
+ bool should_notify(const std::string& name,
+ const std::string& notify_type) {
+ return modules.at(name)->should_notify(notify_type);
+ }
+
std::map<std::string, std::string> get_services() const
{
ceph_assert(active_modules);