2 * Copyright (c) 2015 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.cluster.datastore.jmx.mbeans;
10 import org.opendaylight.controller.cluster.datastore.utils.ActorUtils;
11 import org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean;
14 * Implementation of DatastoreInfoMXBean.
16 * @author Thomas Pantelis
18 public class DatastoreInfoMXBeanImpl extends AbstractMXBean implements DatastoreInfoMXBean {
20 private final ActorUtils actorUtils;
22 public DatastoreInfoMXBeanImpl(String mxBeanType, ActorUtils actorUtils) {
23 super("GeneralRuntimeInfo", mxBeanType, null);
24 this.actorUtils = actorUtils;
29 public double getTransactionCreationRateLimit() {
30 return actorUtils.getTxCreationLimit();