Merge "Bug 1666: Fixing the clustering config file issue"
[controller.git] / opendaylight / md-sal / sal-common-util / src / main / java / org / opendaylight / controller / md / sal / common / util / jmx / QueuedNotificationManagerStats.java
1 /*
2  * Copyright (c) 2014 Brocade Communications Systems, Inc. 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
9 package org.opendaylight.controller.md.sal.common.util.jmx;
10
11 import java.beans.ConstructorProperties;
12 import java.util.List;
13
14 import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
15
16 /**
17  * A bean class that holds various QueuedNotificationManager statistic metrics. This class is
18  * suitable for mapping to the MXBean CompositeDataSupport type.
19  *
20  * <p>
21  * This class is not intended for use outside of MD-SAL and its part of private
22  * implementation (still exported as public to be reused across MD-SAL implementation
23  * components) and may be removed in subsequent
24  * releases.
25  * @author Thomas Pantelis
26  * @see QueuedNotificationManagerMXBeanImpl
27  */
28 public class QueuedNotificationManagerStats {
29
30     private final int maxListenerQueueSize;
31     private final List<ListenerNotificationQueueStats> currentListenerQueueStats;
32
33     @ConstructorProperties({"maxListenerQueueSize","currentListenerQueueStats"})
34     public QueuedNotificationManagerStats( int maxListenerQueueSize,
35             List<ListenerNotificationQueueStats> currentListenerQueueStats ) {
36         super();
37         this.maxListenerQueueSize = maxListenerQueueSize;
38         this.currentListenerQueueStats = currentListenerQueueStats;
39     }
40
41     public List<ListenerNotificationQueueStats> getCurrentListenerQueueStats() {
42         return currentListenerQueueStats;
43     }
44
45     public int getMaxListenerQueueSize() {
46         return maxListenerQueueSize;
47     }
48 }