Package fr.flowarg.flowupdater.download
Interface IProgressCallback
public interface IProgressCallback
This interface provides useful methods to implement to access to download and update status.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidinit(fr.flowarg.flowlogger.ILogger logger) This method is called atFlowUpdaterinitialization.default voidonFileDownloaded(Path path) This method is called beforeupdate(DownloadList.DownloadInfo)when a file is downloaded.default voidThis method is called when a step started.default voidThis method is called when a new file is downloaded.
-
Method Details
-
init
default void init(fr.flowarg.flowlogger.ILogger logger) This method is called atFlowUpdaterinitialization.- Parameters:
logger-ILoggerof FlowUpdater instance.
-
step
This method is called when a step started.- Parameters:
step- ActualStep.
-
update
This method is called when a new file is downloaded.- Parameters:
info- TheDownloadList.DownloadInfoinstance that contains all wanted information.
-
onFileDownloaded
This method is called beforeupdate(DownloadList.DownloadInfo)when a file is downloaded.- Parameters:
path- the file downloaded.
-