1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.hadoop.hbase.regionserver;
20
21
22
23
24
25
26 public interface MetricsRegionSource extends Comparable<MetricsRegionSource> {
27
28 String OPS_SAMPLE_NAME = "ops";
29 String SIZE_VALUE_NAME = "size";
30 String COMPACTIONS_COMPLETED_COUNT = "compactionsCompletedCount";
31 String COMPACTIONS_FAILED_COUNT = "compactionsFailedCount";
32 String LAST_MAJOR_COMPACTION_AGE = "lastMajorCompactionAge";
33 String COMPACTIONS_QUEUED_COUNT = "compactionsQueuedCount";
34 String MAX_COMPACTION_QUEUE_SIZE = "maxCompactionQueueSize";
35 String NUM_BYTES_COMPACTED_COUNT = "numBytesCompactedCount";
36 String NUM_FILES_COMPACTED_COUNT = "numFilesCompactedCount";
37 String FLUSHES_QUEUED_COUNT = "flushesQueuedCount";
38 String MAX_FLUSH_QUEUE_SIZE = "maxFlushQueueSize";
39 String COMPACTIONS_COMPLETED_DESC = "Number of compactions that have completed.";
40 String COMPACTIONS_FAILED_DESC = "Number of compactions that have failed.";
41 String LAST_MAJOR_COMPACTION_DESC = "Age of the last major compaction in milliseconds.";
42 String COMPACTIONS_QUEUED_DESC = "Number of compactions that are queued/running for this region";
43 String MAX_COMPACTION_QUEUE_DESC = "Max number of compactions queued for this region";
44 String FLUSHES_QUEUED_DESC = "Number flushes requested/queued for this region";
45 String MAX_FLUSH_QUEUE_DESC = "Max number of flushes queued for this region";
46 String NUM_BYTES_COMPACTED_DESC =
47 "Sum of filesize on all files entering a finished, successful or aborted, compaction";
48 String NUM_FILES_COMPACTED_DESC =
49 "Number of files that were input for finished, successful or aborted, compactions";
50 String COPROCESSOR_EXECUTION_STATISTICS = "coprocessorExecutionStatistics";
51 String COPROCESSOR_EXECUTION_STATISTICS_DESC = "Statistics for coprocessor execution times";
52 String REPLICA_ID = "replicaid";
53 String REPLICA_ID_DESC = "The replica ID of a region. 0 is primary, otherwise is secondary";
54
55
56
57
58 void close();
59
60
61
62
63 void updatePut();
64
65
66
67
68 void updateDelete();
69
70
71
72
73
74 void updateGet(long mills);
75
76
77
78
79 void updateScanTime(long mills);
80
81
82
83
84 void updateIncrement();
85
86
87
88
89 void updateAppend();
90
91
92
93
94 MetricsRegionAggregateSource getAggregateSource();
95
96
97 }