sweepMetrics); BackgroundSweeperPerformanceLogger sweepPerfLogger = new NoOpBackgroundSweeperPerformanceLogger(); AdjustableSweepBatchConfigSource sweepBatchConfigSource = AdjustableSweepBatchConfigSource.create( metricsManager, () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
@BeforeClass public static void initialiseConfig() { ImmutableSweepBatchConfig sweepBatchConfig = ImmutableSweepBatchConfig.builder() .deleteBatchSize(100) .candidateBatchSize(200) .maxCellTsPairsToExamine(1000) .build(); sweepBatchConfigSource = AdjustableSweepBatchConfigSource.create(metricsManager, () -> sweepBatchConfig); }
private void configWithValues(int maxCellTsPairsToExamine, int candidateBatchSize, int deleteBatchSize) { adjustableConfig = AdjustableSweepBatchConfigSource.create( MetricsManagers.createForTests(), () -> ImmutableSweepBatchConfig.builder() .maxCellTsPairsToExamine(maxCellTsPairsToExamine) .candidateBatchSize(candidateBatchSize) .deleteBatchSize(deleteBatchSize) .build() ); updatePreviousValues(); }
false); sweepBatchConfigSource = AdjustableSweepBatchConfigSource.create(metricsManager, () -> sweepBatchConfig);
sweepMetrics); BackgroundSweeperPerformanceLogger sweepPerfLogger = new NoOpBackgroundSweeperPerformanceLogger(); AdjustableSweepBatchConfigSource sweepBatchConfigSource = AdjustableSweepBatchConfigSource.create( metricsManager, () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
false); sweepBatchConfigSource = AdjustableSweepBatchConfigSource.create(metricsManager, () -> sweepBatchConfig);