Search in sources :

Example 1 with PreWarm

use of org.olat.core.configuration.PreWarm in project OpenOLAT by OpenOLAT.

the class OpenOLATServlet method preWarm.

private void preWarm() {
    TaskExecutorManager executor = CoreSpringFactory.getImpl(TaskExecutorManager.class);
    Map<String, PreWarm> preWarms = CoreSpringFactory.getBeansOfType(PreWarm.class);
    for (PreWarm preWarm : preWarms.values()) {
        executor.execute(preWarm);
    }
}
Also used : TaskExecutorManager(org.olat.core.commons.services.taskexecutor.TaskExecutorManager) PreWarm(org.olat.core.configuration.PreWarm)

Example 2 with PreWarm

use of org.olat.core.configuration.PreWarm in project openolat by klemens.

the class OpenOLATServlet method preWarm.

private void preWarm() {
    TaskExecutorManager executor = CoreSpringFactory.getImpl(TaskExecutorManager.class);
    Map<String, PreWarm> preWarms = CoreSpringFactory.getBeansOfType(PreWarm.class);
    for (PreWarm preWarm : preWarms.values()) {
        executor.execute(preWarm);
    }
}
Also used : TaskExecutorManager(org.olat.core.commons.services.taskexecutor.TaskExecutorManager) PreWarm(org.olat.core.configuration.PreWarm)

Aggregations

TaskExecutorManager (org.olat.core.commons.services.taskexecutor.TaskExecutorManager)2 PreWarm (org.olat.core.configuration.PreWarm)2