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
9 package org.opendaylight.controller.md.sal.common.util.jmx;
11 import java.beans.ConstructorProperties;
12 import java.util.List;
14 import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
17 * A bean class that holds various QueuedNotificationManager statistic metrics. This class is
18 * suitable for mapping to the MXBean CompositeDataSupport type.
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
25 * @author Thomas Pantelis
26 * @see QueuedNotificationManagerMXBeanImpl
28 public class QueuedNotificationManagerStats {
30 private final int maxListenerQueueSize;
31 private final List<ListenerNotificationQueueStats> currentListenerQueueStats;
33 @ConstructorProperties({"maxListenerQueueSize","currentListenerQueueStats"})
34 public QueuedNotificationManagerStats( int maxListenerQueueSize,
35 List<ListenerNotificationQueueStats> currentListenerQueueStats ) {
37 this.maxListenerQueueSize = maxListenerQueueSize;
38 this.currentListenerQueueStats = currentListenerQueueStats;
41 public List<ListenerNotificationQueueStats> getCurrentListenerQueueStats() {
42 return currentListenerQueueStats;
45 public int getMaxListenerQueueSize() {
46 return maxListenerQueueSize;