Service-notification handling for Renderer
[transportpce.git] / renderer / src / test / java / org / opendaylight / transportpce / renderer / utils / NotificationPublishServiceMock.java
1 /*
2  * Copyright © 2017 AT&T, Inc. 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 package org.opendaylight.transportpce.renderer.utils;
9
10 import com.google.common.util.concurrent.ListenableFuture;
11
12 import java.util.concurrent.TimeUnit;
13
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;
18
19 public class NotificationPublishServiceMock implements NotificationPublishService {
20
21     private static final Logger LOG = LoggerFactory.getLogger(NotificationPublishServiceMock.class);
22
23     @Override
24     public void putNotification(Notification notification) throws InterruptedException {
25         LOG.info("putNotification");
26     }
27
28     @Override
29     public ListenableFuture<?> offerNotification(Notification notification) {
30         LOG.info("offerNotification");
31         throw new UnsupportedOperationException("offerNotification is not implemented");
32     }
33
34     @Override
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");
39     }
40
41 }