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.dom.broker.impl.jmx;
12 * MXBean interface for retrieving write Tx commit statistics.
14 * @author Thomas Pantelis
16 public interface CommitStatsMXBean {
19 * Returns the total number of commits that have occurred.
21 long getTotalCommits();
24 * Returns a string representing the time duration of the longest commit, in the appropriate
25 * scaled units, along with the date/time that it occurred.
27 String getLongestCommitTime();
30 * Returns a string representing the time duration of the shortest commit, in the appropriate
31 * scaled units, along with the date/time that it occurred.
33 String getShortestCommitTime();
36 * Returns a string representing average commit time duration, in the appropriate
39 String getAverageCommitTime();
42 * Clears the current stats to their defaults.