use of org.graylog2.plugin.PreflightCheckModule in project graylog2-server by Graylog2.
the class ServerBootstrap method runPreFlightChecks.
private void runPreFlightChecks(Set<Plugin> plugins) {
final List<PreflightCheckModule> preflightCheckModules = plugins.stream().map(Plugin::preflightCheckModules).flatMap(Collection::stream).collect(Collectors.toList());
final Injector injector = getPreflightInjector(preflightCheckModules);
injector.getInstance(PreflightCheckService.class).runChecks();
}
Aggregations