581e90910f452b169e448b80a0055058db70f030
[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 import javax.management.MXBean;
11
12 /**
13  * JMX bean for general datastore info.
14  *
15  * @author Thomas Pantelis
16  */
17 @MXBean
18 public interface DatastoreInfoMXBean {
19
20     double getTransactionCreationRateLimit();
21
22     /**
23      * Return the number of {@code AskTimeoutException}s encountered by the datastore.
24      *
25      * @return Number of exceptions encountered
26      */
27     long getAskTimeoutExceptionCount();
28
29     /**
30      * Reset the number of {@code AskTimeoutException}s encountered by the datastore.
31      */
32     void resetAskTimeoutExceptionCount();
33 }