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