C# Class Summer.Batch.Extra.FtpSupport.FtpGetTasklet

Custom tasklet to do some ftp get NOTE : For now, sftp is UNsupported
Inheritance: ITasklet, IInitializationPostOperations
显示文件 Open project: SummerBatch/SummerBatch Class Usage Examples

Public Methods

Method Description
AfterPropertiesSet ( ) : void

@see IInitializationPostOperations#AfterPropertiesSet

DoExecute ( ) : bool

Delegated. Simplifies unit testing.

Execute ( Summer.Batch.Core.StepContribution contribution, Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : RepeatStatus

Scan remote directory for files matching the given file name pattern and download them, if any, to the given local directory. @see ITasklet#Execute

Private Methods

Method Description
ComputeRemoteFiles ( ) : IList

Search for remote files matching the FileNamePattern

DownloadRemoteFiles ( IList remoteFiles ) : void

Download list of remote files from remote directory

RemoveLocalFiles ( ) : void

Remove local files prior to downloading fresh ones

Method Details

AfterPropertiesSet() public method

@see IInitializationPostOperations#AfterPropertiesSet
public AfterPropertiesSet ( ) : void
return void

DoExecute() public method

Delegated. Simplifies unit testing.
 
public DoExecute ( ) : bool
return bool

Execute() public method

Scan remote directory for files matching the given file name pattern and download them, if any, to the given local directory. @see ITasklet#Execute
public Execute ( Summer.Batch.Core.StepContribution contribution, Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : RepeatStatus
contribution Summer.Batch.Core.StepContribution
chunkContext Summer.Batch.Core.Scope.Context.ChunkContext
return RepeatStatus