コード例 #1
0
        static ExperienceExtractorWebApiConfig()
        {
            JobApiRoute = "api/jobs";

            AllowedRoles = new List<string>();
            AllowedUsers = new List<string>();

            RoutePrefix = typeof(ExperienceExtractorWebApiConfig).Assembly.FullName;

            XdbConnectionString = "ExperienceExtractor";

            JobExecutionSettings = new JobExecutionSettings
            {
                TempDirectory = HostingEnvironment.MapPath("~/App_Data/Export"),
                FieldCacheSize = 5000,
                DatabaseName = "master",
                BatchSize = 50000,
                LoadThreads = 2,
                ProcessingThreads = 2,
                DataSourceBufferSize = 500,
                SizeLimit = 2 * 1024 * 1024 * 1024L
            };

            MaxJobHistoryLength = 100;
        }
コード例 #2
0
        public Job(IJobSpecification specification, JobExecutionSettings settings, Guid?id = null, int statusUpdateFrequency = 1000)
        {
            Id      = id ?? Guid.NewGuid();
            Created = DateTime.Now;

            Status        = JobStatus.Pending;
            Specification = specification;

            StatusUpdateFrequency = statusUpdateFrequency;
            ExecutionSettings     = settings;
            TempDirectory         = Path.Combine(settings.TempDirectory, Id.ToString("N"));
        }
コード例 #3
0
ファイル: Job.cs プロジェクト: vsegrad/experience-extractor
        public Job(IJobSpecification specification, JobExecutionSettings settings, Guid? id = null, int statusUpdateFrequency = 1000)
        {
            Id = id ?? Guid.NewGuid();
            Created = DateTime.Now;
            
            Status = JobStatus.Pending;
            Specification = specification;

            StatusUpdateFrequency = statusUpdateFrequency;
            ExecutionSettings = settings;
            TempDirectory = Path.Combine(settings.TempDirectory, Id.ToString("N"));
        }
コード例 #4
0
        public LocalJobRepository(JobExecutionSettings settings)
        {
            JobExecutionSettings = settings;

            MaxJobHistoryLength = ExperienceExtractorWebApiConfig.MaxJobHistoryLength;
        }
コード例 #5
0
        public LocalJobRepository(JobExecutionSettings settings)
        {
            JobExecutionSettings = settings;

            MaxJobHistoryLength = ExperienceExtractorWebApiConfig.MaxJobHistoryLength;
        }