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 /**
9  * Contains all information necessary to collect statistics from one instance
10  * of DB statistics.
11  */
12 public class StatsCollectorInput {
13   private final Statistics _statistics;
14   private final StatisticsCollectorCallback _statsCallback;
15 
16   /**
17    * Constructor for StatsCollectorInput.
18    *
19    * @param statistics Reference of DB statistics.
20    * @param statsCallback Reference of statistics callback interface.
21    */
StatsCollectorInput(final Statistics statistics, final StatisticsCollectorCallback statsCallback)22   public StatsCollectorInput(final Statistics statistics,
23       final StatisticsCollectorCallback statsCallback) {
24     _statistics = statistics;
25     _statsCallback = statsCallback;
26   }
27 
getStatistics()28   public Statistics getStatistics() {
29     return _statistics;
30   }
31 
getCallback()32   public StatisticsCollectorCallback getCallback() {
33     return _statsCallback;
34   }
35 }
36