2 * Copyright © 2021 Nokia, Inc. 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
8 package org.opendaylight.transportpce.tapi.listeners;
10 import org.opendaylight.mdsal.binding.api.DataBroker;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev201125.ServiceRpcResultSh;
12 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev201125.TransportpceServicehandlerListener;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
16 public class TapiServiceHandlerListenerImpl implements TransportpceServicehandlerListener {
18 private static final Logger LOG = LoggerFactory.getLogger(TapiServiceHandlerListenerImpl.class);
19 private final DataBroker dataBroker;
21 public TapiServiceHandlerListenerImpl(DataBroker dataBroker) {
22 this.dataBroker = dataBroker;
27 public void onServiceRpcResultSh(ServiceRpcResultSh notification) {
28 LOG.info("Avoid dataBroker error {}", dataBroker.getClass().getCanonicalName());