use of com.b2international.snowowl.snomed.reasoner.classification.ClassificationTracker in project snow-owl by b2ihealthcare.
the class SnomedReasonerPlugin method run.
@Override
public void run(final SnowOwlConfiguration configuration, final Environment env) throws Exception {
if (env.isServer()) {
final Index repositoryIndex = env.service(RepositoryManager.class).get(getToolingId()).service(Index.class);
final SnomedCoreConfiguration snomedConfig = configuration.getModuleConfig(SnomedCoreConfiguration.class);
final int maximumReasonerRuns = snomedConfig.getMaxReasonerRuns();
// TODO: make this configurable
final long cleanUpInterval = TimeUnit.MINUTES.toMillis(5L);
final ClassificationTracker classificationTracker = new ClassificationTracker(repositoryIndex, maximumReasonerRuns, cleanUpInterval);
env.services().registerService(ClassificationTracker.class, classificationTracker);
}
}
Aggregations