@Test public void trackersShutDownProcedure() { List<Tracker> coreTrackers = asList(mock(AclTracker.class), mock(ContentTracker.class), mock(MetadataTracker.class), mock(CascadeTracker.class)); listener.shutdownTrackers(core, coreTrackers, scheduler, false); coreTrackers.forEach(tracker -> verify(tracker).setShutdown(true)); coreTrackers.forEach(tracker -> verify(scheduler).deleteJobForTrackerInstance(core.getName(), tracker)); coreTrackers.forEach(tracker -> verify(tracker).shutdown()); }
void shutdownTrackers(SolrCore core, Collection<Tracker> coreTrackers, SolrTrackerScheduler scheduler, boolean coreHasBeenReloaded) { coreTrackers.forEach(tracker -> shutdownTracker(core, tracker, scheduler, coreHasBeenReloaded)); }
SolrCoreLoadListener extends AbstractSolrEventListener { void shutdownTrackers(SolrCore core, Collection<Tracker> coreTrackers, SolrTrackerScheduler scheduler, boolean coreHasBeenReloaded) { coreTrackers.forEach(tracker -> shutdownTracker(core, tracker, scheduler, coreHasBeenReloaded)); } }
SolrCoreLoadListener extends AbstractSolrEventListener { void shutdownTrackers(SolrCore core, Collection<Tracker> coreTrackers, SolrTrackerScheduler scheduler, boolean coreHasBeenReloaded) { coreTrackers.forEach(tracker -> shutdownTracker(core, tracker, scheduler, coreHasBeenReloaded)); } SolrCoreLoadListener(SolrCore core); }
SolrCoreLoadListener extends AbstractSolrEventListener { void shutdownTrackers(SolrCore core, Collection<Tracker> coreTrackers, SolrTrackerScheduler scheduler, boolean coreHasBeenReloaded) { coreTrackers.forEach(tracker -> shutdownTracker(core, tracker, scheduler, coreHasBeenReloaded)); } SolrCoreLoadListener(SolrCore core); @Override void newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher); }
SolrCoreLoadListener extends AbstractSolrEventListener { void shutdownTrackers(SolrCore core, Collection<Tracker> coreTrackers, SolrTrackerScheduler scheduler, boolean coreHasBeenReloaded) { coreTrackers.forEach(tracker -> shutdownTracker(core, tracker, scheduler, coreHasBeenReloaded)); } SolrCoreLoadListener(SolrCore core); @Override void newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher);  }