Ejemplo n.º 1
0
 public void Apply(StepContribution contribution)
 {
     _readSkipCount    += contribution.ReadSkipCount;
     _writeSkipCount   += contribution.WriteSkipCount;
     _processSkipCount += contribution.ProcessSkipCount;
     FilterCount       += contribution.FilterCount;
     _readCount        += contribution.ReadCount;
     _writeCount       += contribution.WriteCount;
     _exitStatus        = _exitStatus.And(contribution.ExitStatus);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Custom constructor using JobExecution.
 /// </summary>
 /// <param name="original"></param>
 public JobExecution(JobExecution original)
 {
     JobParameters         = original.JobParameters;
     JobInstance           = original.JobInstance;
     _stepExecutions       = original._stepExecutions;
     _status               = original.Status;
     StartTime             = original.StartTime;
     CreateTime            = original.CreateTime;
     EndTime               = original.EndTime;
     LastUpdated           = original.LastUpdated;
     _exitStatus           = original.ExitStatus;
     _executionContext     = original.ExecutionContext;
     _failureExceptions    = original.FailureExceptions;
     _jobConfigurationName = original.JobConfigurationName;
     Id      = original.Id;
     Version = original.Version;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Custom constructor used for serialize/deserialize
 /// </summary>
 /// <param name="original"></param>
 /// <param name="stepExecutions"></param>
 public JobExecution(JobExecution original, ICollection <StepExecution> stepExecutions)
 {
     JobParameters         = original.JobParameters;
     JobInstance           = original.JobInstance;
     _status               = original.Status;
     StartTime             = original.StartTime;
     CreateTime            = original.CreateTime;
     EndTime               = original.EndTime;
     LastUpdated           = original.LastUpdated;
     _exitStatus           = original.ExitStatus;
     _executionContext     = original.ExecutionContext;
     _failureExceptions    = original.FailureExceptions;
     _jobConfigurationName = original.JobConfigurationName;
     Id              = original.Id;
     Version         = original.Version;
     _stepExecutions = new ConcurrentBag <StepExecution>();
     if (stepExecutions != null)
     {
         foreach (StepExecution item in stepExecutions)
         {
             _stepExecutions.TryAdd(item);
         }
     }
 }