2 * Copyright © 2017 AT&T and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.transportpce.networkmodel.listeners;
12 import org.opendaylight.mdsal.binding.api.NotificationService.CompositeListener;
13 import org.opendaylight.yang.gen.v1.http.org.openroadm.de.operations.rev161014.RestartNotification;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
17 public class DeOperationsListener {
19 private static final Logger LOG = LoggerFactory.getLogger(DeOperationsListener.class);
21 public CompositeListener getCompositeListener() {
22 return new CompositeListener(Set.of(
23 new CompositeListener.Component<>(RestartNotification.class, this::onRestartNotification)));
27 * Callback for restart-notification.
29 * @param notification RestartNotification object
31 private void onRestartNotification(RestartNotification notification) {
32 LOG.info("Notification {} received {}", RestartNotification.QNAME, notification);