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).
9 * Contains all information necessary to collect statistics from one instance
12 public class StatsCollectorInput
{
13 private final Statistics _statistics
;
14 private final StatisticsCollectorCallback _statsCallback
;
17 * Constructor for StatsCollectorInput.
19 * @param statistics Reference of DB statistics.
20 * @param statsCallback Reference of statistics callback interface.
22 public StatsCollectorInput(final Statistics statistics
,
23 final StatisticsCollectorCallback statsCallback
) {
24 _statistics
= statistics
;
25 _statsCallback
= statsCallback
;
28 public Statistics
getStatistics() {
32 public StatisticsCollectorCallback
getCallback() {
33 return _statsCallback
;