1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. 5 * 6 */ 7 8 package com.sleepycat.je.dbi; 9 10 import com.sleepycat.je.utilint.StatDefinition; 11 12 /** 13 * Per-stat Metadata for JE transaction statistics. 14 */ 15 public class TxnStatDefinition { 16 17 public static final StatDefinition TXN_ACTIVE = 18 new StatDefinition("nActive", 19 "Number of transactions that are currently " + 20 "active."); 21 22 public static final StatDefinition TXN_BEGINS = 23 new StatDefinition("nBegins", 24 "Number of transactions that have begun."); 25 26 public static final StatDefinition TXN_ABORTS = 27 new StatDefinition("nAborts", 28 "Number of transactions that have aborted."); 29 30 public static final StatDefinition TXN_COMMITS = 31 new StatDefinition("nCommits", 32 "Number of transactions that have committed."); 33 34 public static final StatDefinition TXN_XAABORTS = 35 new StatDefinition("nXAAborts", 36 "Number of XA transactions that have aborted."); 37 38 public static final StatDefinition TXN_XAPREPARES = 39 new StatDefinition("nXAPrepares", 40 "Number of XA transactions that have been " + 41 "prepared."); 42 43 public static final StatDefinition TXN_XACOMMITS = 44 new StatDefinition("nXACommits", 45 "Number of XA transactions that have committed."); 46 47 public static final StatDefinition TXN_ACTIVE_TXNS = 48 new StatDefinition("activeTxns", 49 "Array of active transactions. Each element of " + 50 "the array is an object of type " + 51 "Transaction.Active."); 52 } 53