From 7fe2452d395f24c87502410e6f58734ad11da489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B5=D0=BC=D0=BD=D0=B5=D0=BD=D0=BA=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=94=D0=BC=D0=B8=D1=82?= =?UTF-8?q?=D1=80=D0=B8=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 31 Mar 2016 16:23:11 +0300 Subject: [PATCH] the existence check (JScripts, Schedule and other tables) --- jnode-core/src/jnode/main/Main.java | 36 +++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/jnode-core/src/jnode/main/Main.java b/jnode-core/src/jnode/main/Main.java index 35c7108..cdeced5 100644 --- a/jnode-core/src/jnode/main/Main.java +++ b/jnode-core/src/jnode/main/Main.java @@ -21,7 +21,7 @@ package jnode.main; import com.j256.ormlite.logger.LocalLog; - +import jnode.dto.*; import jnode.event.Notifier; import jnode.event.SharedModuleEvent; import jnode.ftn.FtnTools; @@ -30,12 +30,7 @@ import jnode.jscript.JscriptExecutor; import jnode.logger.Logger; import jnode.logger.Redirector; -import jnode.main.threads.HealthReporter; -import jnode.main.threads.NetmailFallback; -import jnode.main.threads.PollQueue; -import jnode.main.threads.ThreadPool; -import jnode.main.threads.TimerPoll; -import jnode.main.threads.TosserQueue; +import jnode.main.threads.*; import jnode.module.JnodeModule; import jnode.orm.ORMManager; import jnode.protocol.binkp.BinkpAsyncClientPool; @@ -48,9 +43,9 @@ import java.util.TimerTask; /** - * + * * @author kreon - * + * */ public class Main { private static final Logger logger = Logger.getLogger(Main.class); @@ -102,7 +97,28 @@ public static void main(String[] args) { BINKD_THREADS, 10); new ThreadPool(nThreads); - // eof + // the existence check + ORMManager.get(Echoarea.class); + ORMManager.get(Echomail.class); + ORMManager.get(EchomailAwaiting.class); + ORMManager.get(Filearea.class); + ORMManager.get(FileForLink.class); + ORMManager.get(Filemail.class); + ORMManager.get(FilemailAwaiting.class); + ORMManager.get(FileSubscription.class); + ORMManager.get(Jscript.class); + ORMManager.get(Link.class); + ORMManager.get(LinkOption.class); + ORMManager.get(Netmail.class); + ORMManager.get(Rewrite.class); + ORMManager.get(Robot.class); + ORMManager.get(Route.class); + ORMManager.get(Schedule.class); + ORMManager.get(ScriptHelper.class); + ORMManager.get(Subscription.class); + ORMManager.get(Version.class); + + // eof ThreadPool.execute(new BinkpAsyncServer()); ThreadPool.execute(new BinkpAsyncClientPool());