import com.google.common.base.Preconditions;
import java.util.LinkedList;
import java.util.List;
+import org.opendaylight.controller.config.util.xml.XmlUtil;
import org.opendaylight.controller.md.sal.dom.api.DOMNotification;
import org.opendaylight.controller.netconf.api.NetconfMessage;
-import org.opendaylight.controller.netconf.util.xml.XmlUtil;
import org.opendaylight.controller.sal.connect.api.MessageTransformer;
import org.opendaylight.controller.sal.connect.api.RemoteDeviceHandler;
import org.opendaylight.controller.sal.connect.util.RemoteDeviceId;
*/
final class NotificationHandler {
- private static final Logger logger = LoggerFactory.getLogger(NotificationHandler.class);
+ private static final Logger LOG = LoggerFactory.getLogger(NotificationHandler.class);
private final RemoteDeviceHandler<?> salFacade;
private final List<NetconfMessage> queue = new LinkedList<>();
private void queueNotification(final NetconfMessage notification) {
Preconditions.checkState(passNotifications == false);
- logger.debug("{}: Caching notification {}, remote schema not yet fully built", id, notification);
- if(logger.isTraceEnabled()) {
- logger.trace("{}: Caching notification {}", id, XmlUtil.toString(notification.getDocument()));
+ LOG.debug("{}: Caching notification {}, remote schema not yet fully built", id, notification);
+ if(LOG.isTraceEnabled()) {
+ LOG.trace("{}: Caching notification {}", id, XmlUtil.toString(notification.getDocument()));
}
queue.add(notification);
}
private synchronized void passNotification(final DOMNotification parsedNotification) {
- logger.debug("{}: Forwarding notification {}", id, parsedNotification);
+ LOG.debug("{}: Forwarding notification {}", id, parsedNotification);
if(filter == null || filter.filterNotification(parsedNotification).isPresent()) {
salFacade.onNotification(parsedNotification);