+++ /dev/null
-/*
- * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.controller.md.sal.common.util.jmx;
-
-import java.util.List;
-
-import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
-
-/**
- * MXBean interface for {@link org.opendaylight.yangtools.util.concurrent.QueuedNotificationManager} statistic metrics.
- *
- * @author Thomas Pantelis
- */
-public interface QueuedNotificationManagerMXBean {
-
- /**
- * Returns a list of stat instances for each current listener notification task in progress.
- */
- List<ListenerNotificationQueueStats> getCurrentListenerQueueStats();
-
- /**
- * Returns the configured maximum listener queue size.
- */
- int getMaxListenerQueueSize();
-}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.controller.md.sal.common.util.jmx;
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
import java.util.List;
import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
import org.opendaylight.yangtools.util.concurrent.QueuedNotificationManager;
+import org.opendaylight.yangtools.util.concurrent.QueuedNotificationManagerMXBean;
/**
* Implementation of the QueuedNotificationManagerMXBean interface.
private final QueuedNotificationManager<?,?> manager;
- public QueuedNotificationManagerMXBeanImpl(QueuedNotificationManager<?,?> manager,
- String beanName, String beanType, String beanCategory) {
+ public QueuedNotificationManagerMXBeanImpl(final QueuedNotificationManager<?,?> manager,
+ final String beanName, final String beanType, final String beanCategory) {
super(beanName, beanType, beanCategory);
- this.manager = Preconditions.checkNotNull(manager);
+ this.manager = requireNonNull(manager);
}
@Override