]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/StatsCollectorInput.java
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / StatsCollectorInput.java
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.
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 */
22 public StatsCollectorInput(final Statistics statistics,
23 final StatisticsCollectorCallback statsCallback) {
24 _statistics = statistics;
25 _statsCallback = statsCallback;
26 }
27
28 public Statistics getStatistics() {
29 return _statistics;
30 }
31
32 public StatisticsCollectorCallback getCallback() {
33 return _statsCallback;
34 }
35 }