2 * Copyright © 2024 Smartoptics 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
9 package org.opendaylight.transportpce.renderer.provisiondevice.notification;
12 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210915.RendererRpcResultSp;
13 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210915.renderer.rpc.result.sp.Link;
14 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev230501.PathDescription;
15 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev220118.RpcStatusEx;
16 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev220118.ServicePathNotificationTypes;
18 public interface Notification {
21 * Send renderer notification.
23 void send(ServicePathNotificationTypes servicePathNotificationTypes,
25 RpcStatusEx rpcStatusEx,
29 * Send renderer notification.
31 void send(org.opendaylight.yangtools.yang.binding.Notification notification);
34 * Build notification containing path description information.
36 * @param servicePathNotificationTypes ServicePathNotificationTypes
37 * @param serviceName String
38 * @param rpcStatusEx RpcStatusEx
39 * @param message String
40 * @param pathDescription PathDescription
41 * @return notification with RendererRpcResultSp type.
43 RendererRpcResultSp buildNotification(
44 ServicePathNotificationTypes servicePathNotificationTypes,
46 RpcStatusEx rpcStatusEx,
48 PathDescription pathDescription,
50 Set<String> supportedLinks,