1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.hadoop.hbase.master;
20
21 import org.apache.hadoop.hbase.metrics.BaseSource;
22
23 public interface MetricsSnapshotSource extends BaseSource {
24
25
26
27 String METRICS_NAME = "Snapshots";
28
29
30
31
32 String METRICS_CONTEXT = "master";
33
34
35
36
37 String METRICS_JMX_CONTEXT = "Master,sub=" + METRICS_NAME;
38
39
40
41
42 String METRICS_DESCRIPTION = "Metrics about HBase master server";
43
44 String SNAPSHOT_TIME_NAME = "snapshotTime";
45 String SNAPSHOT_RESTORE_TIME_NAME = "snapshotRestoreTime";
46 String SNAPSHOT_CLONE_TIME_NAME = "snapshotCloneTime";
47 String SNAPSHOT_TIME_DESC = "Time it takes to finish snapshot()";
48 String SNAPSHOT_RESTORE_TIME_DESC = "Time it takes to finish restoreSnapshot()";
49 String SNAPSHOT_CLONE_TIME_DESC = "Time it takes to finish cloneSnapshot()";
50
51 void updateSnapshotTime(long time);
52
53 void updateSnapshotCloneTime(long time);
54
55 void updateSnapshotRestoreTime(long time);
56 }