DFSOpsCountStatistics extends StorageStatistics { @Override public Long getLong(String key) { final OpType type = OpType.fromSymbol(key); return type == null ? null : opsCount.get(type).get(); } DFSOpsCountStatistics(); void incrementOpCounter(OpType op); @Override String getScheme(); @Override Iterator<LongStatistic> getLongStatistics(); @Override Long getLong(String key); @Override boolean isTracked(String key); @Override void reset(); static final String NAME; }
@Test public void testGetLong() { assertNull(statistics.getLong(null)); assertNull(statistics.getLong(NO_SUCH_OP)); verifyStatistics(); }