MetricsAsserts.java 文件源码

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

项目:hadoop-plus 作者:
/**
 * Assert that a long counter 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 assertCounterGt(String name, long greater,
                                   MetricsRecordBuilder rb) {
  Assert.assertThat("Bad value for metric " + name, getLongCounter(name, rb),
      new GreaterThan<Long>(greater));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号