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 NUM_BYTES_COMPACTED_COUNT = "numBytesCompactedCount";
32 String NUM_FILES_COMPACTED_COUNT = "numFilesCompactedCount";
33 String COMPACTIONS_COMPLETED_DESC = "Number of compactions that have completed.";
34 String NUM_BYTES_COMPACTED_DESC =
35 "Sum of filesize on all files entering a finished, successful or aborted, compaction";
36 String NUM_FILES_COMPACTED_DESC =
37 "Number of files that were input for finished, successful or aborted, compactions";
38 String COPROCESSOR_EXECUTION_STATISTICS = "coprocessorExecutionStatistics";
39 String COPROCESSOR_EXECUTION_STATISTICS_DESC = "Statistics for coprocessor execution times";
40 String REPLICA_ID = "replicaid";
41 String REPLICA_ID_DESC = "The replica ID of a region. 0 is primary, otherwise is secondary";
42
43
44
45
46 void close();
47
48
49
50
51 void updatePut();
52
53
54
55
56 void updateDelete();
57
58
59
60
61
62 void updateGet(long mills);
63
64
65
66
67 void updateScanTime(long mills);
68
69
70
71
72 void updateIncrement();
73
74
75
76
77 void updateAppend();
78
79
80
81
82 MetricsRegionAggregateSource getAggregateSource();
83
84
85 }