Search in sources :

Example 1 with PreflightCheckModule

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();
}
Also used : Injector(com.google.inject.Injector) PreflightCheckService(org.graylog2.bootstrap.preflight.PreflightCheckService) PreflightCheckModule(org.graylog2.plugin.PreflightCheckModule) Plugin(org.graylog2.plugin.Plugin)

Aggregations

Injector (com.google.inject.Injector)1 PreflightCheckService (org.graylog2.bootstrap.preflight.PreflightCheckService)1 Plugin (org.graylog2.plugin.Plugin)1 PreflightCheckModule (org.graylog2.plugin.PreflightCheckModule)1