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 import com.sleepycat.je.utilint.StatDefinition.StatType;
12 
13 /**
14  * Per-stat Metadata for JE Btree statistics.
15  */
16 public class BTreeStatDefinition {
17 
18     public static final String GROUP_NAME = "BTree";
19     public static final String GROUP_DESC =
20         "Composition of btree, types and counts of nodes.";
21 
22     public static final StatDefinition BTREE_BIN_COUNT =
23         new StatDefinition("binCount",
24                            "Number of bottom internal nodes in " +
25                            "the database's btree.",
26                            StatType.CUMULATIVE);
27 
28     public static final StatDefinition BTREE_DELETED_LN_COUNT =
29         new StatDefinition("deletedLNCount",
30                            "Number of deleted leaf nodes in the database's " +
31                            "btree.",
32                            StatType.CUMULATIVE);
33 
34     public static final StatDefinition BTREE_IN_COUNT =
35         new StatDefinition("inCount",
36                            "Number of internal nodes in database's btree. " +
37                            "BINs are not included.",
38                            StatType.CUMULATIVE);
39 
40     public static final StatDefinition BTREE_LN_COUNT =
41         new StatDefinition("lnCount",
42                            "Number of leaf nodes in the database's btree.",
43                            StatType.CUMULATIVE);
44 
45     public static final StatDefinition BTREE_MAINTREE_MAXDEPTH =
46         new StatDefinition("mainTreeMaxDepth",
47                            "Maximum depth of the in-memory tree.",
48                            StatType.CUMULATIVE);
49 
50     public static final StatDefinition BTREE_INS_BYLEVEL =
51         new StatDefinition("insByLevel",
52                            "Histogram of internal nodes by level.",
53                            StatType.CUMULATIVE);
54 
55     public static final StatDefinition BTREE_BINS_BYLEVEL =
56         new StatDefinition("binsByLevel",
57                            "Histogram of bottom internal nodes by level.",
58                            StatType.CUMULATIVE);
59 
60     public static final StatDefinition BTREE_RELATCHES_REQUIRED =
61         new StatDefinition("relatchesRequired",
62                            "Number of latch upgrades (relatches) required.");
63 
64     public static final StatDefinition BTREE_ROOT_SPLITS =
65         new StatDefinition("nRootSplits",
66                            "Number of times the root was split.");
67 
68     public static final StatDefinition BTREE_BIN_ENTRIES_HISTOGRAM =
69         new StatDefinition("binEntriesHistogram",
70                            "Histogram of bottom internal nodes fill " +
71                            "percentage.",
72                            StatType.CUMULATIVE);
73 }
74