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.recovery;
9 
10 import com.sleepycat.je.utilint.StatDefinition;
11 import com.sleepycat.je.utilint.StatDefinition.StatType;
12 
13 /**
14  * Per-stat Metadata for JE checkpointer statistics.
15  */
16 public class CheckpointStatDefinition {
17     public static final String GROUP_NAME = "Checkpoints";
18     public static final String GROUP_DESC =
19         "Frequency and extent of checkpointing activity.";
20 
21     public static final StatDefinition CKPT_CHECKPOINTS =
22         new StatDefinition("nCheckpoints",
23                            "Total number of checkpoints run so far.");
24 
25     public static final StatDefinition CKPT_LAST_CKPTID =
26         new StatDefinition("lastCheckpointId",
27                            "Id of the last checkpoint.",
28                            StatType.CUMULATIVE);
29 
30     public static final StatDefinition CKPT_FULL_IN_FLUSH =
31         new StatDefinition("nFullINFlush",
32                            "Accumulated number of full INs flushed to the "+
33                            "log.");
34 
35     public static final StatDefinition CKPT_FULL_BIN_FLUSH =
36         new StatDefinition("nFullBINFlush",
37                            "Accumulated number of full BINs flushed to the " +
38                            "log.");
39 
40     public static final StatDefinition CKPT_DELTA_IN_FLUSH =
41         new StatDefinition("nDeltaINFlush",
42                            "Accumulated number of Delta INs flushed to the " +
43                            "log.");
44 
45     public static final StatDefinition CKPT_LAST_CKPT_INTERVAL =
46         new StatDefinition("lastCheckpointInterval",
47                            "Byte length from last checkpoint start to the " +
48                            "previous checkpoint start.",
49                            StatType.CUMULATIVE);
50 
51     public static final StatDefinition CKPT_LAST_CKPT_START =
52         new StatDefinition("lastCheckpointStart",
53                            "Location in the log of the last checkpoint start.",
54                            StatType.CUMULATIVE);
55 
56     public static final StatDefinition CKPT_LAST_CKPT_END =
57         new StatDefinition("lastCheckpointEnd",
58                            "Location in the log of the last checkpoint end.",
59                            StatType.CUMULATIVE);
60 }
61