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.txn;
9 
10 import com.sleepycat.je.utilint.StatDefinition;
11 import com.sleepycat.je.utilint.StatDefinition.StatType;
12 
13 /**
14  * Per-stat Metadata for JE lock statistics.
15  */
16 public class LockStatDefinition {
17 
18     public static final String GROUP_NAME = "Locks";
19     public static final String GROUP_DESC =
20         "Locks held by data operations, latching contention on lock table.";
21 
22     public static final StatDefinition LOCK_READ_LOCKS =
23         new StatDefinition("nReadLocks",
24                            "Number of read locks currently held.",
25                            StatType.CUMULATIVE);
26 
27     public static final StatDefinition LOCK_WRITE_LOCKS =
28         new StatDefinition("nWriteLocks",
29                            "Number of write locks currently held.",
30                            StatType.CUMULATIVE);
31 
32     public static final StatDefinition LOCK_OWNERS =
33         new StatDefinition("nOwners",
34                            "Number of lock owners in lock table.",
35                            StatType.CUMULATIVE);
36 
37     public static final StatDefinition LOCK_REQUESTS =
38         new StatDefinition("nRequests",
39                            "Number of times a lock request was made.");
40 
41     public static final StatDefinition LOCK_TOTAL =
42         new StatDefinition("nTotalLocks",
43                            "Number of locks current in lock table.",
44                            StatType.CUMULATIVE);
45 
46     public static final StatDefinition LOCK_WAITS =
47         new StatDefinition("nWaits",
48                            "Number of times a lock request blocked.");
49 
50     public static final StatDefinition LOCK_WAITERS =
51         new StatDefinition("nWaiters",
52                            "Number of transactions waiting for a lock.",
53                            StatType.CUMULATIVE);
54 }
55