void startScheduler(final PlatformServiceAccessor platformAccessor, final List<STenant> tenants) throws SBonitaException, BonitaHomeNotSetException, BonitaHomeConfigurationException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, ClassNotFoundException { final NodeConfiguration platformConfiguration = platformAccessor.getPlatformConfiguration(); final SchedulerService schedulerService = platformAccessor.getSchedulerService(); if (platformConfiguration.shouldStartScheduler() && !schedulerService.isStarted()) { schedulerService.initializeScheduler(); addPlatformJobListeners(platformAccessor, schedulerService); addTenantJobListeners(platformAccessor, tenants, schedulerService); schedulerService.start(); } }
void startScheduler(final PlatformServiceAccessor platformAccessor, final List<STenant> tenants) throws SBonitaException, BonitaHomeNotSetException, BonitaHomeConfigurationException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, ClassNotFoundException { final NodeConfiguration platformConfiguration = platformAccessor.getPlatformConfiguration(); final SchedulerService schedulerService = platformAccessor.getSchedulerService(); if (platformConfiguration.shouldStartScheduler() && !schedulerService.isStarted()) { schedulerService.initializeScheduler(); addPlatformJobListeners(platformAccessor, schedulerService); addTenantJobListeners(platformAccessor, tenants, schedulerService); schedulerService.start(); } }