2 * Copyright © 2016 AT&T 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.networkmodel.dto;
10 import org.opendaylight.yang.gen.v1.http.org.openroadm.alarm.rev161014.OrgOpenroadmAlarmListener;
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.de.operations.rev161014.OrgOpenroadmDeOperationsListener;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev170206.OrgOpenroadmDeviceListener;
13 import org.opendaylight.yang.gen.v1.http.org.openroadm.lldp.rev161014.OrgOpenroadmLldpListener;
14 import org.opendaylight.yang.gen.v1.http.org.openroadm.tca.rev161014.OrgOpenroadmTcaListener;
15 import org.opendaylight.yangtools.concepts.ListenerRegistration;
17 public class NodeRegistration {
19 private final String nodeId;
20 private final ListenerRegistration<OrgOpenroadmAlarmListener> accessAlarmNotificationListenerRegistration;
21 private final ListenerRegistration<OrgOpenroadmDeOperationsListener>
22 accessDeOperationasNotificationListenerRegistration;
23 private final ListenerRegistration<OrgOpenroadmDeviceListener> accessDeviceNotificationListenerRegistration;
24 private final ListenerRegistration<OrgOpenroadmLldpListener> accessLldpNotificationListenerRegistration;
25 private final ListenerRegistration<OrgOpenroadmTcaListener> accessTcaNotificationListenerRegistration;
27 public NodeRegistration(String nodeId,
28 ListenerRegistration<OrgOpenroadmAlarmListener> accessAlarmNotificationListenerRegistration,
29 ListenerRegistration<OrgOpenroadmDeOperationsListener> accessDeOperationasNotificationListenerRegistration,
30 ListenerRegistration<OrgOpenroadmDeviceListener> accessDeviceNotificationListenerRegistration,
31 ListenerRegistration<OrgOpenroadmLldpListener> accessLldpNotificationListenerRegistration,
32 ListenerRegistration<OrgOpenroadmTcaListener> accessTcaNotificationListenerRegistration) {
34 this.accessAlarmNotificationListenerRegistration = accessAlarmNotificationListenerRegistration;
35 this.accessDeOperationasNotificationListenerRegistration = accessDeOperationasNotificationListenerRegistration;
36 this.accessDeviceNotificationListenerRegistration = accessDeviceNotificationListenerRegistration;
37 this.accessLldpNotificationListenerRegistration = accessLldpNotificationListenerRegistration;
38 this.accessTcaNotificationListenerRegistration = accessTcaNotificationListenerRegistration;
41 public String getNodeId() {
45 public ListenerRegistration<OrgOpenroadmAlarmListener> getAccessAlarmNotificationListenerRegistration() {
46 return accessAlarmNotificationListenerRegistration;
49 public ListenerRegistration<OrgOpenroadmDeOperationsListener>
50 getAccessDeOperationasNotificationListenerRegistration() {
51 return accessDeOperationasNotificationListenerRegistration;
54 public ListenerRegistration<OrgOpenroadmDeviceListener> getAccessDeviceNotificationListenerRegistration() {
55 return accessDeviceNotificationListenerRegistration;
58 public ListenerRegistration<OrgOpenroadmLldpListener> getAccessLldpNotificationListenerRegistration() {
59 return accessLldpNotificationListenerRegistration;
62 public ListenerRegistration<OrgOpenroadmTcaListener> getAccessTcaNotificationListenerRegistration() {
63 return accessTcaNotificationListenerRegistration;