Exemplo n.º 1
0
            public override void Init()
            {
                _rdbmsReaderJob = new RdbmsReader.Job(DatabaseType);
                _rdbmsReaderJob.Init(JobConfiguration);

                var userConfiguredFetchSize = JobConfiguration.GetValue <int?>(Constant.FETCH_SIZE);

                if (userConfiguredFetchSize != null)
                {
                    _logger.Warning(
                        "对 mysqlreader 不需要配置 fetchSize, mysqlreader 将会忽略这项配置. 如果您不想再看到此警告,请去除fetchSize 配置.");
                }
            }
Exemplo n.º 2
0
            public override void StartRead(IRecordSender recordSender)
            {
                var fetchSize = JobConfiguration.GetValue <int>(Constant.FETCH_SIZE);

                _rdbmsReaderTask.StartRead(JobConfiguration, recordSender, fetchSize);
            }