1 package org.onap.ccsdk.features.sdnr.wt.websocketmanager.model;
3 import org.opendaylight.mdsal.dom.api.DOMNotification;
4 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime;
5 import org.opendaylight.yangtools.yang.binding.Notification;
6 import org.opendaylight.yangtools.yang.common.QName;
9 * ============LICENSE_START=======================================================
10 * ONAP : ccsdk features
11 * ================================================================================
12 * Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
13 * All rights reserved.
14 * ================================================================================
15 * Licensed under the Apache License, Version 2.0 (the "License");
16 * you may not use this file except in compliance with the License.
17 * You may obtain a copy of the License at
19 * http://www.apache.org/licenses/LICENSE-2.0
21 * Unless required by applicable law or agreed to in writing, software
22 * distributed under the License is distributed on an "AS IS" BASIS,
23 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 * See the License for the specific language governing permissions and
25 * limitations under the License.
26 * ============LICENSE_END=========================================================
31 * outgoing message will be wrapped into container:
35 * <eventTime>2017-07-12T12:00:00.0Z</eventTime>
36 * <problem-notification xmlns="urn:onf:params:xml:ns:yang:microwave-model">
37 * <problem>signalIsLostMinor</problem>
38 * <object-id-ref>LP-MWPS-RADIO</object-id-ref>
39 * <severity>non-alarmed</severity>
40 * <counter>$COUNTER</counter>
41 * <time-stamp>$TIME</time-stamp>
42 * </problem-notification>
43 * <node-id>ROADM-A</node-id>
44 * <eventType></eventType>
51 public interface WebsocketManagerService {
54 * Send notification via Websocket to the connected clients.
55 * eventTime is extracted out of notification if {@link #EventInstantAware } is implemented
60 void sendNotification(Notification notification, String nodeId, QName eventType);
62 * Send notification via Websocket to the connected clients.
68 void sendNotification(Notification notification, String nodeId, QName eventType, DateAndTime eventTime);
71 * Send notification via Websocket to the connected clients.
76 void sendNotification(DOMNotification notification, String nodeId, QName eventType);
78 * Send notification via Websocket to the connected clients.
84 void sendNotification(DOMNotification notification, String nodeId, QName eventType, DateAndTime eventTime);