Package slash.navigation.download
Class DownloadManager
java.lang.Object
slash.navigation.download.DownloadManager
Manages
Downloads- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrUpdateInQueue(String description, String url, Action action, FileAndChecksum file, List<FileAndChecksum> fragments) voidvoiddispose()voidexecuteDownload(String description, String url, Action action, File file, Runnable invokeAfterSuccessfulDownloadRunnable) voidexecuteDownload(String description, String url, Action action, File file, List<FileAndChecksum> fragments, Runnable invokeAfterSuccessfulDownloadRunnable) voidfinishedExecutor(DownloadExecutor executor) voidfireFailed(Download download) voidfireProgressed(Download download) voidfireSucceeded(Download download) getModel()voidqueueForDownload(String description, String url, Action action, FileAndChecksum file, List<FileAndChecksum> fragments) voidremoveDownload(String url) voidremoveDownloads(List<Download> downloads) voidrestartDownloads(List<Download> downloads) voidvoidvoidstopDownloads(List<Download> downloads) voidupdateDownload(Download download) voidwaitForCompletion(Collection<Download> downloads)
-
Constructor Details
-
DownloadManager
-
-
Method Details
-
loadQueue
public void loadQueue() -
restartDownloads
-
stopDownloads
-
removeDownloads
-
saveQueue
public void saveQueue() -
clearQueue
public void clearQueue() -
dispose
public void dispose() -
getModel
-
scanForOutdatedFilesInQueue
- Throws:
IOException
-
waitForCompletion
-
removeDownload
-