C# (CSharp) Summer.Batch.Core.Launch.Support Namespace

Classes

Name Description
SimpleJobLauncher Simple implementation of the IJobLauncher interface. The ITaskExecutor interface is used to launch a Job. This means that the type of executor set is very important. If a SyncTaskExecutor is used, then the job will be processed within the same thread that called the launcher. Care should be taken to ensure any users of this class understand fully whether or not the implementation of TaskExecutor used will start tasks synchronously or asynchronously. The default setting uses a synchronous task executor. There is only one required dependency of this Launcher, an IJobRepository. The IJobRepository is used to obtain a valid JobExecution. The Repository must be used because the provided Job could be a restart of an existing JobInstance, and only the Repository can reliably recreate it.
SimpleJobOperator Simple implementation of the IJobOperator interface. Due to the amount of functionality the implementation is combining, the following dependencies are required:
  • IJobLauncher
  • IJobExplorer
  • IJobRepository
  • IJobRegistry
VmSystemExiter Implementation of the ISystemExiter interface that calls the standards Environment.Exit method. It should be noted that there will be no unit tests for this class, since there is only one line of actual code, that would only be testable by mocking System or Runtime.