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
8 package org.opendaylight.controller.cluster.datastore.jmx.mbeans;
10 import javax.management.MXBean;
13 * MXBean interface for retrieving write Tx commit statistics.
15 * @author Thomas Pantelis
18 public interface CommitStatsMXBean {
20 * Returns the total number of commits that have occurred.
22 * @return Returns the total number of commits that have occurred
25 long getTotalCommits();
28 * Returns a string representing the time duration of the longest commit, in the appropriate
29 * scaled units, along with the date/time that it occurred.
33 String getLongestCommitTime();
36 * Returns a string representing the time duration of the shortest commit, in the appropriate
37 * scaled units, along with the date/time that it occurred.
41 String getShortestCommitTime();
44 * Returns a string representing average commit time duration, in the appropriate
49 String getAverageCommitTime();
52 * Clears the current stats to their defaults.