Summer.Batch.Extra.EmptyCheckSupport.EmptyFileCheckTasklet Class Reference
Simple tasklet that checks if a given file is empty. It returns "EMPTY" if the file is empty or absent, "NOT_EMPTY" if it exists and is not empty. More...
Inheritance diagram for Summer.Batch.Extra.EmptyCheckSupport.EmptyFileCheckTasklet:
Public Member Functions | |
void | BeforeStep (StepExecution stepExecution) |
Do nothing before step More... | |
RepeatStatus | Execute (StepContribution contribution, ChunkContext chunkContext) |
Do nothing execution, since all the logic is in after step More... | |
ExitStatus | AfterStep (StepExecution stepExecution) |
Performs the actual check and returns the code "EMPTY" or "NOT_EMPTY" accordingly More... | |
Properties | |
IResource | FileToCheck [set] |
The file to check More... | |
Detailed Description
Simple tasklet that checks if a given file is empty. It returns "EMPTY" if the file is empty or absent, "NOT_EMPTY" if it exists and is not empty.
Member Function Documentation
ExitStatus Summer.Batch.Extra.EmptyCheckSupport.EmptyFileCheckTasklet.AfterStep | ( | StepExecution | stepExecution | ) |
Performs the actual check and returns the code "EMPTY" or "NOT_EMPTY" accordingly
- Parameters
-
stepExecution
- Returns
- "EMPTY" or "NOT_EMPTY"
Implements Summer.Batch.Core.IStepExecutionListener.
void Summer.Batch.Extra.EmptyCheckSupport.EmptyFileCheckTasklet.BeforeStep | ( | StepExecution | stepExecution | ) |
Do nothing before step
- Parameters
-
stepExecution
Implements Summer.Batch.Core.IStepExecutionListener.
RepeatStatus Summer.Batch.Extra.EmptyCheckSupport.EmptyFileCheckTasklet.Execute | ( | StepContribution | contribution, |
ChunkContext | chunkContext | ||
) |
Do nothing execution, since all the logic is in after step
- Parameters
-
contribution chunkContext
- Returns
Implements Summer.Batch.Core.Step.Tasklet.ITasklet.
Property Documentation
|
set |
The file to check
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/EmptyCheckSupport/EmptyFileCheckTasklet.cs