2 * Copyright (c) 2017 Inocybe Technologies 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.controller.cluster.mgmt.api;
10 import static java.util.Objects.requireNonNull;
12 import javax.management.ConstructorParameters;
13 import org.eclipse.jdt.annotation.NonNullByDefault;
16 * Information about a registered listener.
18 * @author Thomas Pantelis
21 public final class DataTreeListenerInfo {
22 private final String listener;
23 private final String registeredPath;
24 private final boolean isEnabled;
25 private final long notificationCount;
27 @ConstructorParameters({"listener","registeredPath", "isEnabled", "notificationCount"})
28 public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled,
29 final long notificationCount) {
30 this.listener = requireNonNull(listener);
31 this.registeredPath = requireNonNull(registeredPath);
32 this.isEnabled = isEnabled;
33 this.notificationCount = notificationCount;
36 public String getListener() {
40 public String getRegisteredPath() {
41 return registeredPath;
44 public boolean isEnabled() {
48 public long getNotificationCount() {
49 return notificationCount;