Make it easier to monitor the ABoxReasoner thread.

This commit is contained in:
j2blake 2013-11-06 09:23:43 -05:00
parent 2a237f379b
commit ef25ee4dd6

View file

@ -33,6 +33,7 @@ import edu.cornell.mannlib.vitro.webapp.reasoner.ReasonerPlugin;
import edu.cornell.mannlib.vitro.webapp.reasoner.SimpleReasoner;
import edu.cornell.mannlib.vitro.webapp.reasoner.SimpleReasonerTBoxListener;
import edu.cornell.mannlib.vitro.webapp.startup.StartupStatus;
import edu.cornell.mannlib.vitro.webapp.utils.threads.VitroBackgroundThread;
public class SimpleReasonerSetup implements ServletContextListener {
@ -121,7 +122,7 @@ public class SimpleReasonerSetup implements ServletContextListener {
simpleReasoner.recompute();
} else if (RecomputeMode.BACKGROUND.equals(mode)) {
log.info("starting ABox inference recompute in a separate thread.");
new Thread(
new VitroBackgroundThread(
new ABoxRecomputer(
simpleReasoner),"ABoxRecomputer").start();
}