Skip to content

NMS-19836: Move thresh-configuration.xml and thresholds.xml to DB#8555

Open
christianpape wants to merge 1 commit into
features/threshd-config-db-migrationfrom
jira/NMS-19836
Open

NMS-19836: Move thresh-configuration.xml and thresholds.xml to DB#8555
christianpape wants to merge 1 commit into
features/threshd-config-db-migrationfrom
jira/NMS-19836

Conversation

@christianpape

Copy link
Copy Markdown
Contributor

Comment on lines +62 to +73
private ConfigurationManagerService getCms() {
if (cms == null) {
synchronized (this) {
if (cms == null) {
cms = BeanUtils.getBean("daoContext", "configurationManagerService", ConfigurationManagerService.class);
cms.registerEventHandler(EventType.UPDATE,
new ConfigUpdateInfo(CONFIG_NAME, ConfigDefinition.DEFAULT_CONFIG_ID),
info -> onConfigChanged());
}
}
}
return cms;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using CM directly, should we explore creating class that exposes AbstractCmJaxbConfigDao and using that here for both thresholds.xml and thresh-configuration.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants