DocumentDBConfig::SP getDocumentDBConfig(const vespalib::string &name) { auto snapshot = _config.get(); auto &dbcs = snapshot->getDocumentDBConfigs(); auto dbitr = dbcs.find(DocTypeName(name)); if (dbitr != dbcs.end()) { return dbitr->second; } else { return DocumentDBConfig::SP(); } }
BootstrapConfig::SP getBootstrapConfig() { auto snapshot = _config.get(); return snapshot->getBootstrapConfig(); }