public static interface RepositoryPlugin.DownloadListener
| Modifier and Type | Method and Description |
|---|---|
void |
failure(java.io.File file,
java.lang.String reason)
Called when the file could not be downloaded from a remote
repository.
|
boolean |
progress(java.io.File file,
int percentage)
Can be called back regularly before success/failure but never after.
|
void |
success(java.io.File file)
Called when the file is successfully downloaded from a remote
repository.
|
void success(java.io.File file)
throws java.lang.Exception
file - The file that was downloadedjava.lang.Exception - , are logged and ignoredvoid failure(java.io.File file,
java.lang.String reason)
throws java.lang.Exception
file - The file that was intended to be downloaded.java.lang.Exception - , are logged and ignoredboolean progress(java.io.File file,
int percentage)
throws java.lang.Exception
file - The file that was intended to be downloadedpercentage - Percentage of file downloaded (can go down)java.lang.Exception - , are logged and ignored