1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same 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
;