Beispiel #1
0
 public void ReadFromDatabase(Job config, IProgressMonitor progressMonitor, IJobStatusTracker jobStatusTracker)
 {
     jobStatusTracker.TrackStart();
     try
     {
         ReadFromDatabase(config, progressMonitor);
     }
     catch (Exception e)
     {
         jobStatusTracker.TrackError(e);
         throw;
     }
     jobStatusTracker.TrackCompletion();
 }
        /// <summary>
        /// The run pipeline.
        /// </summary>
        /// <param name="config">
        /// The config.
        /// </param>
        /// <param name="progressMonitor">
        /// The progress monitor.
        /// </param>
        /// <param name="jobStatusTracker">
        /// The job status tracker.
        /// </param>
        public void RunPipeline(Job config, IProgressMonitor progressMonitor, IJobStatusTracker jobStatusTracker)
        {
            jobStatusTracker.TrackStart();
            try
            {
                this.RunPipeline(config, progressMonitor);
            }
            catch (Exception e)
            {
                jobStatusTracker.TrackError(e);
                throw;
            }

            jobStatusTracker.TrackCompletion();
        }
Beispiel #3
0
        /// <inheritdoc />
        public void RunElasticSearchPipeline(IJob config, IJobStatusTracker jobStatusTracker)
        {
            jobStatusTracker.TrackStart();
            try
            {
                this.RunElasticSearchPipeline(config);
            }
            catch (Exception e)
            {
                jobStatusTracker.TrackError(e);
                throw;
            }

            jobStatusTracker.TrackCompletion();
        }