8764493c25a5158f22ee8f5c3e55c24f4b819f43
[controller.git] / opendaylight / md-sal / cds-mgmt-api / src / main / java / org / opendaylight / controller / cluster / datastore / jmx / mbeans / DatastoreInfoMXBean.java
1 /*
2  * Copyright (c) 2015 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.cluster.datastore.jmx.mbeans;
9
10 /**
11  * JMX bean for general datastore info.
12  *
13  * @author Thomas Pantelis
14  */
15 public interface DatastoreInfoMXBean {
16
17     double getTransactionCreationRateLimit();
18
19     /**
20      * Return the number of {@code AskTimeoutException}s encountered by the datastore.
21      *
22      * @return Number of exceptions encountered
23      */
24     long getAskTimeoutExceptionCount();
25
26     /**
27      * Reset the number of {@code AskTimeoutException}s encountered by the datastore.
28      */
29     void resetAskTimeoutExceptionCount();
30 }