public interface DownloadManagerServiceMBean
Modifier and Type | Method and Description |
---|---|
void |
cancelDownload(String userId,
String downloadIdentifier)
Function to cancel a download.
|
List<String> |
getAllDownloads()
Function to get all downloads.
|
List<String> |
getAllDownloads(String userId)
Function to get all downloads for a specific user.
|
List<Map<String,String>> |
getAllDownloadsStatus()
Function to get information about every download.
|
Map<String,String> |
getDownloadStatus(String downloadIdentifier)
Function to get information about a specific download.
|
void |
removeDownloadInfo(String downloadIdentifier)
Function to remove the map entry corresponding to the downloadIdentifer passed it.
|
List<Map<String,String>> getAllDownloadsStatus()
Map<String,String> getDownloadStatus(String downloadIdentifier)
downloadIdentifier
- The randomly generated downloadId string assigned to the download at
its start.this.getAllDownloadsStatus
for details.List<String> getAllDownloads()
List<String> getAllDownloads(String userId)
userId
- The id of the user.this.getAllDownloads
.void removeDownloadInfo(String downloadIdentifier)
this.getAllDownloadsStatus
, this.getDownloadStatus
, or this.getAllDownloads
.downloadIdentifier
- The randomly generated downloadId string assigned to the download at
its start.This work is licensed under a Creative Commons Attribution 4.0 International License.