X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=renderer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Frenderer%2Flisteners%2FTcaListener.java;fp=renderer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Frenderer%2Flisteners%2FTcaListener.java;h=b9b92c7570268fe420342777140e3d48660c1a99;hb=c90116eb48dcad47f42b5444ade3c940effead1b;hp=0000000000000000000000000000000000000000;hpb=487f960d91fd41fe09c33bd79258246e808143b5;p=transportpce.git diff --git a/renderer/src/main/java/org/opendaylight/transportpce/renderer/listeners/TcaListener.java b/renderer/src/main/java/org/opendaylight/transportpce/renderer/listeners/TcaListener.java new file mode 100644 index 000000000..b9b92c757 --- /dev/null +++ b/renderer/src/main/java/org/opendaylight/transportpce/renderer/listeners/TcaListener.java @@ -0,0 +1,29 @@ +/* + * Copyright © 2017 AT&T and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +package org.opendaylight.transportpce.renderer.listeners; + +import org.opendaylight.yang.gen.v1.http.org.openroadm.tca.rev161014.OrgOpenroadmTcaListener; +import org.opendaylight.yang.gen.v1.http.org.openroadm.tca.rev161014.TcaNotification; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class TcaListener implements OrgOpenroadmTcaListener { + + private static final Logger LOG = LoggerFactory.getLogger(OrgOpenroadmTcaListener.class); + + /** + * Callback for tca-notification. + * + * @param notification TcaNotification object + */ + @Override + public void onTcaNotification(TcaNotification notification) { + LOG.info("Notification {} received {}", TcaNotification.QNAME, notification); + } +} \ No newline at end of file