Skip to content

Commit 99cb2b6

Browse files
authored
HDFS-16065. RBF: Add metrics to record Router's operations (#3100)
1 parent 4ced012 commit 99cb2b6

File tree

5 files changed

+854
-0
lines changed

5 files changed

+854
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/Router.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,18 @@ public RouterMetrics getRouterMetrics() {
643643
return null;
644644
}
645645

646+
/**
647+
* Get the metrics system for the Router Client.
648+
*
649+
* @return Router Client metrics.
650+
*/
651+
public RouterClientMetrics getRouterClientMetrics() {
652+
if (this.metrics != null) {
653+
return this.metrics.getRouterClientMetrics();
654+
}
655+
return null;
656+
}
657+
646658
/**
647659
* Get the federation metrics.
648660
*

0 commit comments

Comments
 (0)