* Router:

- More refactoring tasks to their own files
    - Adjust some thread priorities
This commit is contained in:
zzz
2011-12-05 16:18:35 +00:00
parent 5362e7cf15
commit 0f384c86fe
5 changed files with 180 additions and 123 deletions

View File

@ -342,6 +342,7 @@ public class RouterConsoleRunner {
}
Thread t = new I2PAppThread(new StatSummarizer(), "StatSummarizer", true);
t.setPriority(Thread.NORM_PRIORITY - 1);
t.start();
List<RouterContext> contexts = RouterContext.listContexts();
@ -350,10 +351,12 @@ public class RouterConsoleRunner {
NewsFetcher fetcher = NewsFetcher.getInstance(ctx);
Thread newsThread = new I2PAppThread(fetcher, "NewsFetcher", true);
newsThread.setPriority(Thread.NORM_PRIORITY - 1);
newsThread.start();
if (PluginStarter.pluginsEnabled(ctx)) {
t = new I2PAppThread(new PluginStarter(ctx), "PluginStarter", true);
t.setPriority(Thread.NORM_PRIORITY - 1);
t.start();
ctx.addShutdownTask(new PluginStopper(ctx));
}