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.CompatibilitySingletonFactory;
22
23 public class MetricsAssignmentManager {
24
25 private final MetricsAssignmentManagerSource assignmentManagerSource;
26
27 public MetricsAssignmentManager() {
28 assignmentManagerSource = CompatibilitySingletonFactory.getInstance(
29 MetricsAssignmentManagerSource.class);
30 }
31
32 public MetricsAssignmentManagerSource getMetricsProcSource() {
33 return assignmentManagerSource;
34 }
35
36 public void updateAssignmentTime(long time) {
37 assignmentManagerSource.updateAssignmentTime(time);
38 }
39
40 public void updateBulkAssignTime(long time) {
41 assignmentManagerSource.updateBulkAssignTime(time);
42 }
43
44
45
46
47
48 public void updateRITCount(int ritCount) {
49 assignmentManagerSource.setRIT(ritCount);
50 }
51
52
53
54
55
56
57 public void updateRITCountOverThreshold(int ritCountOverThreshold) {
58 assignmentManagerSource.setRITCountOverThreshold(ritCountOverThreshold);
59 }
60
61
62
63
64 public void updateRITOldestAge(long timestamp) {
65 assignmentManagerSource.setRITOldestAge(timestamp);
66 }
67 }