Skip to content

Commit 2a1454b

Browse files
author
slfan1989
committed
YARN-11250. Fix CheckStyle.
1 parent 8fdadcb commit 2a1454b

File tree

3 files changed

+145
-131
lines changed

3 files changed

+145
-131
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/store/impl/ZKFederationStateStoreOpDurations.java

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,43 +36,43 @@
3636
public final class ZKFederationStateStoreOpDurations implements MetricsSource {
3737

3838
@Metric("Duration for a add application homeSubcluster call")
39-
private MutableRate addAppHomeSubClusterCall;
39+
private MutableRate addAppHomeSubCluster;
4040

4141
@Metric("Duration for a update application homeSubcluster call")
42-
private MutableRate updateAppHomeSubClusterCall;
42+
private MutableRate updateAppHomeSubCluster;
4343

4444
@Metric("Duration for a get application homeSubcluster call")
45-
private MutableRate getAppHomeSubClusterCall;
45+
private MutableRate getAppHomeSubCluster;
4646

4747
@Metric("Duration for a get applications homeSubcluster call")
48-
private MutableRate getAppsHomeSubClusterCall;
48+
private MutableRate getAppsHomeSubCluster;
4949

5050
@Metric("Duration for a delete applications homeSubcluster call")
51-
private MutableRate deleteAppHomeSubClusterCall;
51+
private MutableRate deleteAppHomeSubCluster;
5252

5353
@Metric("Duration for a register subCluster call")
54-
private MutableRate registerSubClusterCall;
54+
private MutableRate registerSubCluster;
5555

5656
@Metric("Duration for a deregister subCluster call")
57-
private MutableRate deregisterSubClusterCall;
57+
private MutableRate deregisterSubCluster;
5858

5959
@Metric("Duration for a subCluster Heartbeat call")
60-
private MutableRate subClusterHeartbeatCall;
60+
private MutableRate subClusterHeartbeat;
6161

6262
@Metric("Duration for a get SubCluster call")
63-
private MutableRate getSubClusterCall;
63+
private MutableRate getSubCluster;
6464

6565
@Metric("Duration for a get SubClusters call")
66-
private MutableRate getSubClustersCall;
66+
private MutableRate getSubClusters;
6767

6868
@Metric("Duration for a get PolicyConfiguration call")
69-
private MutableRate getPolicyConfigurationCall;
69+
private MutableRate getPolicyConfiguration;
7070

7171
@Metric("Duration for a set PolicyConfiguration call")
72-
private MutableRate setPolicyConfigurationCall;
72+
private MutableRate setPolicyConfiguration;
7373

7474
@Metric("Duration for a get PolicyConfigurations call")
75-
private MutableRate getPoliciesConfigurationsCall;
75+
private MutableRate getPoliciesConfigurations;
7676

7777
protected static final MetricsInfo RECORD_INFO =
7878
info("ZKFederationStateStoreOpDurations", "Durations of ZKFederationStateStore calls");
@@ -101,55 +101,55 @@ public synchronized void getMetrics(MetricsCollector collector, boolean all) {
101101
registry.snapshot(collector.addRecord(registry.info()), all);
102102
}
103103

104-
public void addAppHomeSubClusterCallDuration(long value) {
105-
addAppHomeSubClusterCall.add(value);
104+
public void addAppHomeSubClusterDuration(long value) {
105+
addAppHomeSubCluster.add(value);
106106
}
107107

108-
public void addUpdateAppHomeSubClusterCallDuration(long value) {
109-
updateAppHomeSubClusterCall.add(value);
108+
public void addUpdateAppHomeSubClusterDuration(long value) {
109+
updateAppHomeSubCluster.add(value);
110110
}
111111

112-
public void addGetAppHomeSubClusterCallDuration(long value) {
113-
getAppHomeSubClusterCall.add(value);
112+
public void addGetAppHomeSubClusterDuration(long value) {
113+
getAppHomeSubCluster.add(value);
114114
}
115115

116-
public void addGetAppsHomeSubClusterCallDuration(long value) {
117-
getAppsHomeSubClusterCall.add(value);
116+
public void addGetAppsHomeSubClusterDuration(long value) {
117+
getAppsHomeSubCluster.add(value);
118118
}
119119

120-
public void addDeleteAppHomeSubClusterCallDuration(long value) {
121-
deleteAppHomeSubClusterCall.add(value);
120+
public void addDeleteAppHomeSubClusterDuration(long value) {
121+
deleteAppHomeSubCluster.add(value);
122122
}
123123

124-
public void addRegisterSubClusterCallDuration(long value) {
125-
registerSubClusterCall.add(value);
124+
public void addRegisterSubClusterDuration(long value) {
125+
registerSubCluster.add(value);
126126
}
127127

128-
public void addDeregisterSubClusterCallDuration(long value) {
129-
deregisterSubClusterCall.add(value);
128+
public void addDeregisterSubClusterDuration(long value) {
129+
deregisterSubCluster.add(value);
130130
}
131131

132-
public void addSubClusterHeartbeatCallDuration(long value) {
133-
subClusterHeartbeatCall.add(value);
132+
public void addSubClusterHeartbeatDuration(long value) {
133+
subClusterHeartbeat.add(value);
134134
}
135135

136-
public void addGetSubClusterCallDuration(long value) {
137-
getSubClusterCall.add(value);
136+
public void addGetSubClusterDuration(long value) {
137+
getSubCluster.add(value);
138138
}
139139

140-
public void addGetSubClustersCallDuration(long value) {
141-
getSubClustersCall.add(value);
140+
public void addGetSubClustersDuration(long value) {
141+
getSubClusters.add(value);
142142
}
143143

144144
public void addGetPolicyConfigurationDuration(long value) {
145-
getPolicyConfigurationCall.add(value);
145+
getPolicyConfiguration.add(value);
146146
}
147147

148148
public void addSetPolicyConfigurationDuration(long value) {
149-
setPolicyConfigurationCall.add(value);
149+
setPolicyConfiguration.add(value);
150150
}
151151

152152
public void addGetPoliciesConfigurationsDuration(long value) {
153-
getPoliciesConfigurationsCall.add(value);
153+
getPoliciesConfigurations.add(value);
154154
}
155155
}

0 commit comments

Comments
 (0)