*/
package org.opendaylight.transportpce.nbinotifications.impl;
-import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
}
private static final Logger LOG = LoggerFactory.getLogger(NbiNotificationsProvider.class);
- private static Map<String, Publisher<NotificationProcessService>> publishersServiceMap = new HashMap<>();
- private static Map<String, Publisher<NotificationAlarmService>> publishersAlarmMap = new HashMap<>();
+ private Map<String, Publisher<NotificationProcessService>> publishersServiceMap;
+ private Map<String, Publisher<NotificationAlarmService>> publishersAlarmMap;
private Registration listenerRegistration;
private Registration rpcRegistration;
private NetworkTransactionService networkTransactionService;
}
JsonStringConverter<NotificationTapiService> converterTapiService =
new JsonStringConverter<>(bindingDOMCodecServices);
- LOG.info("baozhi tapi converter: {}", converterTapiService);
+ LOG.info("tapi converter: {}", converterTapiService);
topicManager.setTapiConverter(converterTapiService);
rpcRegistration = rpcProviderService.registerRpcImplementations(
listenerRegistration = notificationService.registerCompositeListener(
notificationsListener.getCompositeListener());
topicManager.setNbiNotificationsListener(notificationsListener);
+ publishersServiceMap = topicManager.getProcessTopicMap();
+ publishersAlarmMap = topicManager.getAlarmTopicMap();
LOG.info("NbiNotificationsProvider Session Initiated");
}