use of org.apache.ratis.metrics.RatisMetrics in project incubator-ratis by apache.
the class TestRaftLogMetrics method assertCommitCount.
static void assertCommitCount(RaftServer.Division server, int expectedMsgs) {
final RatisMetricRegistry rlm = ((RatisMetrics) server.getRaftLog().getRaftLogMetrics()).getRegistry();
long stmCount = rlm.counter(STATE_MACHINE_LOG_ENTRY_COUNT).getCount();
Assert.assertEquals(expectedMsgs, stmCount);
}
Aggregations