use of com.yelp.nrtsearch.server.plugins.FetchTaskPlugin in project nrtsearch by Yelp.
the class FetchTaskCreator method initialize.
/**
* Initialize singleton instance of {@link FetchTaskCreator}. Registers any standard tasks and any
* additional tasks provided by {@link FetchTaskPlugin}s.
*
* @param configuration service configuration
* @param plugins list of loaded plugins
*/
public static void initialize(LuceneServerConfiguration configuration, Iterable<Plugin> plugins) {
instance = new FetchTaskCreator(configuration);
for (Plugin plugin : plugins) {
if (plugin instanceof FetchTaskPlugin) {
FetchTaskPlugin fetchTaskPlugin = (FetchTaskPlugin) plugin;
instance.register(fetchTaskPlugin.getFetchTasks());
}
}
}
Aggregations