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

Custom tasklet to do some ftp get NOTE : For now, sftp is UNsupported
Inheritance: ITasklet, IInitializationPostOperations
Afficher le fichier Open project: SummerBatch/SummerBatch Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

@see IInitializationPostOperations#AfterPropertiesSet
public AfterPropertiesSet ( ) : void
Résultat void

DoExecute() public méthode

Delegated. Simplifies unit testing.
 
public DoExecute ( ) : bool
Résultat bool

Execute() public méthode

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
Résultat RepeatStatus