public analyticJobRecord(analyticJob __job, analyticProject __sciProject, analyticJobRunFlags aFlags) : base(__sciProject.name, __job)
        {
            job = __job;
            //sampleTakeLimit = aFlags.getSampleTakeLimit();
            //if (sampleTakeLimit == 0) sampleTakeLimit = imbWEMManager.settings.sampleTakeLimit;

            //sampleTakeLimit = sampleTakeLimit + job.sampleSkip;

            //sampleTakeLimit = Math.Min(imbWEMManager.settings.sampleTakeLimit, sampleTakeLimit);

            sampleBlockOrdinalNumber = 0; // imbWEMManager.settings.sampleTakeBlock;

            sciProject = __sciProject;

            //  contentTreeGlobalRegistar.allowExistingContentTrees = imbWEMManager.settings.loaderComponent.cacheInMemoryContentTree;

            //tokenizedContentGlobalRegistar.allowUseExisting = imbWEMManager.settings.loaderComponent.cacheInMemoryTokenizedContent;
        }
Beispiel #2
0
        /// sluzi samo da bi AnalyticEngine bio referenciran
        /// </summary>
        public static void prepare(analyticProject sciProject)
        {
            aceLog.consoleControl.setAsOutput(log, "analitic");

            // <----------------------- ova nebuloza ispod je zbog multithreadinga ---
            string tmp = "\\=".getCleanFilepath();

            tmp = tmp.getCleanFileName();
            tmp = tmp.getFilename("tmp");
            // <----------------------------------------------------------------------



            settings.prepare();

            imbLanguageFrameworkManager.Prepare();

            loaderSubsystem.prepare();

            imbSCI.Core.screenOutputControl.logToConsoleControl.setAsOutput(aceLog.loger.GetMainLogBuilder()); // tmp hack

            imbACE.Network.tools.systemKnowledge.prepare(null, log);


            //imbSemanticEngine.imbSemanticEngineManager.prepare();

            imbSCI.Reporting.script.docScriptAppendExtensions.defaultRowLimit = settings.postReportEngine.tableExcerptRowLimitDefault;

            if (settings.loaderComponent.cacheDoUseExternalPath)
            {
                log.log("Using external path for cache root");
                cacheSystem.defaultCacheDirectoryPath = settings.loaderComponent.cacheExternalPathForCache;
            }

            log.log("Cache path: " + cacheSystem.defaultCacheDirectoryPath);

            log.log("imbAnalyticEngineManager->prepare() call");

            builderForLog.autoFlushDisabled = !settings.executionLog.doAutoflushLogs;
            builderForLog.autoFlushLength   = settings.executionLog.logAutoflushLength;

            md5.isCacheEnabled = settings.supportEngine.doChacheMD5;


            imbSCI.Reporting.script.docScriptAppendExtensions.doAllowExcelAttachments = settings.postReportEngine.reportBuildDoExcelExport;
            imbSCI.Reporting.script.docScriptAppendExtensions.doAllowJSONAttachments  = settings.postReportEngine.reportBuildDoJSONExport;



            log.log("Index/home page filenames count: " + indexHtmlFilenames.Count);
            log.log("All index page filenames count: " + indexAllFilenames.Count);


            if (index == null)
            {
                index = new indexManager(settings.indexEngine.doIndexLoadMainIndex);
            }


            aceLog.consoleControl.removeFromOutput(log);
        }