Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * JBoss, Home of Professional Open Source
  * Copyright 2009, Red Hat Middleware LLC, and individual contributors
  * as indicated by the @author tags.
  * See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  * This copyrighted material is made available to anyone wishing to use,
  * modify, copy, or redistribute it subject to the terms and conditions
  * of the GNU Lesser General Public License, v. 2.1.
 * This program is distributed in the hope that it will be useful, but WITHOUT A
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License,
 * v.2.1 along with this distribution; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301, USA.
 *
 * (C) 2009,
 * @author JBoss, a division of Red Hat.
 */
package com.arjuna.ats.arjuna.coordinator;

MBean interface for monitoring transaction statistics.

Author(s):
Jonathan Halliday (jonathan.halliday@redhat.com)
public interface TxStatsMBean
{
    
Returns the total number of transactions (top-level and nested) created

Returns:
the total number of transactions created
    long getNumberOfTransactions();

    
Returns the total number of nested (sub) transactions created. Note: in JTA environments will normally be 0, since JTA disallows nested tx by default.

Returns:
the total number of nested (sub) transactions created
    long getNumberOfNestedTransactions();

    
Returns the number of transactions which have terminated with heuristic outcomes.

Returns:
the transactions which have terminated with heuristic outcomes
    long getNumberOfHeuristics();

    
Returns the number of committed transactions

Returns:
rhe number of committed transactions
    long getNumberOfCommittedTransactions();

    
Returns the number of aborted (i.e. rolledback) transactions

Returns:
The number of rolledback transactions.
    long getNumberOfAbortedTransactions();

    
Get the number of transactions that have begun but not yet terminated. Note: This count is approximate, particularly in recovery situations.

Returns:
the number of transactions that have begun but not yet terminated
    long getNumberOfInflightTransactions();

    
Returns the number of transactions that have rolled back due to timeout.

Returns:
the number of transactions that have rolled back due to timeout.
    long getNumberOfTimedOutTransactions();

    
Returns the number of transactions that have been rolled back by application request. This includes those that timeout, since the timeout behaviour is considered an attribute of the application configuration.

Returns:
the number of transactions that have been rolled back by application request.
    long getNumberOfApplicationRollbacks();

    
Returns the number of transactions that rolled back due to resource (participant) failure.

Returns:
the number of transactions that rolled back due to resource (participant) failure.
New to GrepCode? Check out our FAQ X