X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-mgmt-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fmgmt%2Fapi%2FDataTreeListenerInfo.java;fp=opendaylight%2Fmd-sal%2Fcds-mgmt-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fmgmt%2Fapi%2FDataTreeListenerInfo.java;h=1a6a793cbbe089b385891053b48b884b2fc067e9;hp=0000000000000000000000000000000000000000;hb=f42225de5a1c5af8f1c60fef23395def20c80dc2;hpb=817d0efe25becd8d457550b11bf985298e169954 diff --git a/opendaylight/md-sal/cds-mgmt-api/src/main/java/org/opendaylight/controller/cluster/mgmt/api/DataTreeListenerInfo.java b/opendaylight/md-sal/cds-mgmt-api/src/main/java/org/opendaylight/controller/cluster/mgmt/api/DataTreeListenerInfo.java new file mode 100644 index 0000000000..1a6a793cbb --- /dev/null +++ b/opendaylight/md-sal/cds-mgmt-api/src/main/java/org/opendaylight/controller/cluster/mgmt/api/DataTreeListenerInfo.java @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2017 Inocybe Technologies and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.controller.cluster.mgmt.api; + +import static java.util.Objects.requireNonNull; + +import javax.management.ConstructorParameters; +import org.eclipse.jdt.annotation.NonNullByDefault; + +/** + * Information about a registered listener. + * + * @author Thomas Pantelis + */ +@NonNullByDefault +public final class DataTreeListenerInfo { + private final String listener; + private final String registeredPath; + private final boolean isEnabled; + private final long notificationCount; + + @ConstructorParameters({"listener","registeredPath", "isEnabled", "notificationCount"}) + public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled, + final long notificationCount) { + this.listener = requireNonNull(listener); + this.registeredPath = requireNonNull(registeredPath); + this.isEnabled = isEnabled; + this.notificationCount = notificationCount; + } + + public String getListener() { + return listener; + } + + public String getRegisteredPath() { + return registeredPath; + } + + public boolean isEnabled() { + return isEnabled; + } + + public long getNotificationCount() { + return notificationCount; + } +}