2 * Copyright (c) 2014 Brocade Communications Systems, Inc. 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.md.sal.common.util.jmx;
10 import java.beans.ConstructorProperties;
11 import java.util.List;
12 import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
15 * A bean class that holds various QueuedNotificationManager statistic metrics. This class is
16 * suitable for mapping to the MXBean CompositeDataSupport type.
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
23 * @author Thomas Pantelis
24 * @see QueuedNotificationManagerMXBeanImpl
26 public class QueuedNotificationManagerStats {
27 private final int maxListenerQueueSize;
28 private final List<ListenerNotificationQueueStats> currentListenerQueueStats;
30 @ConstructorProperties({"maxListenerQueueSize","currentListenerQueueStats"})
31 public QueuedNotificationManagerStats(int maxListenerQueueSize,
32 List<ListenerNotificationQueueStats> currentListenerQueueStats) {
33 this.maxListenerQueueSize = maxListenerQueueSize;
34 this.currentListenerQueueStats = currentListenerQueueStats;
37 public List<ListenerNotificationQueueStats> getCurrentListenerQueueStats() {
38 return currentListenerQueueStats;
41 public int getMaxListenerQueueSize() {
42 return maxListenerQueueSize;