|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PluginRunner
Interface that represents "worker" - main code of the plugin - for downloading file
| Method Summary | |
|---|---|
void |
init(ShareDownloadService shareDownloadService,
HttpFileDownloadTask downloadTask)
Initialization of runner - this method is called as first before methods run() and runCheck() |
void |
run()
Main "bussiness logic" of the plugin - process of file downloading from service If no exception is thrown, everything is being considered to be OK - file download state is set to COMPLETED automatically |
void |
runCheck()
Main "bussiness logic" of the plugin - process of downloading If no exception is thrown, everything is being considered to be OK - file state is set to FileState.EXISTING_AND_CHECKED automatically |
| Method Detail |
|---|
void init(ShareDownloadService shareDownloadService,
HttpFileDownloadTask downloadTask)
throws Exception
shareDownloadService - download service that is associated to this runnerdownloadTask - file downloader
Exception - if initialization failed
void runCheck()
throws Exception
ExceptionDownloadState,
FileState
void run()
throws Exception
Exception - if anything went wrongDownloadState,
FileState
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||