Add MXBean to report shard registered DTCL/DCL info
[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 com.google.common.base.Preconditions;
11 import java.beans.ConstructorProperties;
12
13 /**
14  * Response to a {@link GetInfo} query from a data tree listener actor.
15  *
16  * @author Thomas Pantelis
17  */
18 public class DataTreeListenerInfo {
19     private final String listener;
20     private final String registeredPath;
21     private final boolean isEnabled;
22     private final long notificationCount;
23
24     @ConstructorProperties({"listener","registeredPath", "isEnabled", "notificationCount"})
25     public DataTreeListenerInfo(final String listener, final String registeredPath, final boolean isEnabled,
26             final long notificationCount) {
27         this.listener = Preconditions.checkNotNull(listener);
28         this.registeredPath = Preconditions.checkNotNull(registeredPath);
29         this.isEnabled = isEnabled;
30         this.notificationCount = notificationCount;
31     }
32
33     public String getListener() {
34         return listener;
35     }
36
37     public String getRegisteredPath() {
38         return registeredPath;
39     }
40
41     public boolean isEnabled() {
42         return isEnabled;
43     }
44
45     public long getNotificationCount() {
46         return notificationCount;
47     }
48 }

©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.