2 * Copyright © 2017 AT&T, 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.pce.utils;
10 import com.google.common.util.concurrent.ListenableFuture;
12 import java.util.concurrent.TimeUnit;
14 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
15 import org.opendaylight.yangtools.yang.binding.Notification;
16 import org.slf4j.Logger;
17 import org.slf4j.LoggerFactory;
19 public class NotificationPublishServiceMock implements NotificationPublishService {
21 private static final Logger LOG = LoggerFactory.getLogger(NotificationPublishServiceMock.class);
24 public void putNotification(Notification notification) throws InterruptedException {
25 LOG.info("putNotification");
29 public ListenableFuture<?> offerNotification(Notification notification) {
30 LOG.info("offerNotification");
31 throw new UnsupportedOperationException("offerNotification is not implemented");
35 public ListenableFuture<?> offerNotification(Notification notification, int timeout, TimeUnit unit)
36 throws InterruptedException {
37 LOG.info("offerNotification");
38 throw new UnsupportedOperationException("offerNotification is not implemented");