Remove java.desktop dependency
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / DataTreeListenerInfo.java
1 /*
2  * Copyright (c) 2017 Inocybe Technologies 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.controller.cluster.datastore.messages;
9
10 import static java.util.Objects.requireNonNull;
11
12 import javax.management.ConstructorParameters;
13
14 /**
15  * Response to a {@link GetInfo} query from a data tree listener actor.
16  *
17  * @author Thomas Pantelis
18  */
19 public class DataTreeListenerInfo {
20     private final String listener;
21     private final String registeredPath;
22     private final boolean isEnabled;
23     private final long notificationCount;
24
25     @ConstructorParameters({"listener","registeredPath", "isEnabled", "notificationCount"})
26     public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled,
27             final long notificationCount) {
28         this.listener = requireNonNull(listener);
29         this.registeredPath = requireNonNull(registeredPath);
30         this.isEnabled = isEnabled;
31         this.notificationCount = notificationCount;
32     }
33
34     public String getListener() {
35         return listener;
36     }
37
38     public String getRegisteredPath() {
39         return registeredPath;
40     }
41
42     public boolean isEnabled() {
43         return isEnabled;
44     }
45
46     public long getNotificationCount() {
47         return notificationCount;
48     }
49 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.