Package org.rocksdb
Class StatisticsCollector
java.lang.Object
org.rocksdb.StatisticsCollector
Helper class to collect DB statistics periodically at a period specified in constructor. Callback function (provided in constructor) is called with every statistics collection.
Caller should call start() to start statistics collection. Shutdown() should be called to stop stats collection and should be called before statistics ( provided in constructor) reference has been disposed.
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticsCollector(List<StatsCollectorInput> statsCollectorInputList, int statsCollectionIntervalInMilliSeconds) Constructor for statistics collector. -
Method Summary
-
Constructor Details
-
StatisticsCollector
public StatisticsCollector(List<StatsCollectorInput> statsCollectorInputList, int statsCollectionIntervalInMilliSeconds) Constructor for statistics collector.- Parameters:
statsCollectorInputList- List of statistics collector input.statsCollectionIntervalInMilliSeconds- Statistics collection time period (specified in milliseconds).
-
-
Method Details
-
start
public void start() -
shutDown
Shuts down statistics collector.- Parameters:
shutdownTimeout- Time in milli-seconds to wait for shutdown before killing the collection process.- Throws:
InterruptedException- thrown if Threads are interrupted.
-