mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 17:56:49 +00:00
Arc lint fixes
This commit is contained in:
@@ -12,28 +12,28 @@ public class StatisticsCollectorTest {
|
||||
static {
|
||||
RocksDB.loadLibrary();
|
||||
}
|
||||
|
||||
|
||||
public static void main(String[] args) throws InterruptedException, RocksDBException {
|
||||
Options opt = new Options().createStatistics().setCreateIfMissing(true);
|
||||
Statistics stats = opt.statisticsPtr();
|
||||
|
||||
|
||||
RocksDB db = RocksDB.open(db_path);
|
||||
|
||||
|
||||
StatsCallbackMock callback = new StatsCallbackMock();
|
||||
StatisticsCollector statsCollector = new StatisticsCollector(stats, 100,
|
||||
StatisticsCollector statsCollector = new StatisticsCollector(stats, 100,
|
||||
callback);
|
||||
statsCollector.start();
|
||||
|
||||
|
||||
Thread.sleep(1000);
|
||||
|
||||
|
||||
assert(callback.tickerCallbackCount > 0);
|
||||
assert(callback.histCallbackCount > 0);
|
||||
|
||||
|
||||
statsCollector.shutDown();
|
||||
|
||||
|
||||
db.close();
|
||||
opt.dispose();
|
||||
|
||||
|
||||
System.out.println("Stats collector test passed.!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user