Search in sources :

Example 6 with ExtensionCallback

use of org.neo4j.test.extension.ExtensionCallback in project neo4j by neo4j.

the class SchemaAcceptanceTest method configure.

@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
    Monitors monitors = new Monitors();
    IndexingService.MonitorAdapter trappingMonitor = new IndexingService.MonitorAdapter() {

        @Override
        public void indexPopulationScanComplete() {
            if (trapPopulation.get()) {
                populationScanFinished.reached();
            }
        }
    };
    monitors.addMonitorListener(trappingMonitor);
    builder.setMonitors(monitors);
}
Also used : IndexingService(org.neo4j.kernel.impl.api.index.IndexingService) Monitors(org.neo4j.monitoring.Monitors) ExtensionCallback(org.neo4j.test.extension.ExtensionCallback)

Aggregations

ExtensionCallback (org.neo4j.test.extension.ExtensionCallback)6 IndexingService (org.neo4j.kernel.impl.api.index.IndexingService)3 Monitors (org.neo4j.monitoring.Monitors)3 Dependencies (org.neo4j.collection.Dependencies)2 TimeUnit (java.util.concurrent.TimeUnit)1 ExtensionFactory (org.neo4j.kernel.extension.ExtensionFactory)1 TokenIndexProviderFactory (org.neo4j.kernel.impl.index.schema.TokenIndexProviderFactory)1 CentralJobScheduler (org.neo4j.kernel.impl.scheduler.CentralJobScheduler)1 Group (org.neo4j.scheduler.Group)1 JobHandle (org.neo4j.scheduler.JobHandle)1 JobMonitoringParams (org.neo4j.scheduler.JobMonitoringParams)1