Minor checkstyle corrections
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / listeners / DeviceListener.java
1 /*
2  * Copyright © 2017 AT&T and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.transportpce.renderer.listeners;
10
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev170206.ChangeNotification;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev170206.OrgOpenroadmDeviceListener;
13 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev170206.OtdrScanResult;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
16
17 public class DeviceListener implements OrgOpenroadmDeviceListener {
18
19     private static final Logger LOG = LoggerFactory.getLogger(OrgOpenroadmDeviceListener.class);
20
21     /**
22      * Callback for change-notification.
23      *
24      * @param notification ChangeNotification object
25      */
26     @Override
27     public void onChangeNotification(ChangeNotification notification) {
28
29         LOG.info("Notification {} received {}", ChangeNotification.QNAME, notification);
30     }
31
32     /**
33      * Callback for otdr-scan-result.
34      *
35      * @param notification OtdrScanResult object
36      */
37     @Override
38     public void onOtdrScanResult(OtdrScanResult notification) {
39
40         LOG.info("Notification {} received {}", OtdrScanResult.QNAME, notification);
41     }
42 }