MetricsAsserts.java 文件源码

java
阅读 49 收藏 0 点赞 0 评论 0

项目:hadoop-2.6.0-cdh5.4.3 作者:
/**
 * Assert that a double gauge metric is greater than a value
 * @param name  of the metric
 * @param greater value of the metric should be greater than this
 * @param rb  the record builder mock used to getMetrics
 */
public static void assertGaugeGt(String name, double greater,
                                 MetricsRecordBuilder rb) {
  Assert.assertThat("Bad value for metric " + name, getDoubleGauge(name, rb),
      new GreaterThan<Double>(greater));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号