1 // Copyright (c) 2011-present, Facebook, Inc.  All rights reserved.
2 //  This source code is licensed under both the GPLv2 (found in the
3 //  COPYING file in the root directory) and Apache 2.0 License
4 //  (found in the LICENSE.Apache file in the root directory).
5 
6 package org.rocksdb;
7 
8 public class StatsCallbackMock implements StatisticsCollectorCallback {
9   public int tickerCallbackCount = 0;
10   public int histCallbackCount = 0;
11 
tickerCallback(TickerType tickerType, long tickerCount)12   public void tickerCallback(TickerType tickerType, long tickerCount) {
13     tickerCallbackCount++;
14   }
15 
histogramCallback(HistogramType histType, HistogramData histData)16   public void histogramCallback(HistogramType histType,
17       HistogramData histData) {
18     histCallbackCount++;
19   }
20 }
21