Class DownloadManagerService
java.lang.Object
org.codice.ddf.catalog.admin.downloadmanager.DownloadManagerService
- All Implemented Interfaces:
DownloadManagerServiceMBean
-
Constructor Summary
ConstructorsConstructorDescriptionDownloadManagerService(ddf.catalog.event.retrievestatus.DownloadStatusInfo downloadStatusInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelDownload(String userId, String downloadIdentifier) Function to cancel a download.voiddestroy()Function to get all downloads.getAllDownloads(String userId) Function to get all downloads for a specific user.Function to get information about every download.getDownloadStatus(String downloadIdentifier) Function to get information about a specific download.voidinit()voidremoveDownloadInfo(String downloadIdentifier) Function to remove the map entry corresponding to the downloadIdentifier passed it.
-
Constructor Details
-
DownloadManagerService
public DownloadManagerService(ddf.catalog.event.retrievestatus.DownloadStatusInfo downloadStatusInfo)
-
-
Method Details
-
init
public void init() -
destroy
public void destroy() -
getAllDownloadsStatus
Description copied from interface:DownloadManagerServiceMBeanFunction to get information about every download.- Specified by:
getAllDownloadsStatusin interfaceDownloadManagerServiceMBean- Returns:
- Returns the information in an array of maps, where each map holds information about a specific download.
- See Also:
-
getDownloadStatus
Description copied from interface:DownloadManagerServiceMBeanFunction to get information about a specific download.- Specified by:
getDownloadStatusin interfaceDownloadManagerServiceMBean- Parameters:
downloadIdentifier- The randomly generated downloadId string assigned to the download at its start.- Returns:
- Returns a map of attributes describing the download.
- See Also:
-
getAllDownloads
Description copied from interface:DownloadManagerServiceMBeanFunction to get all downloads.- Specified by:
getAllDownloadsin interfaceDownloadManagerServiceMBean- Returns:
- Returns an array of downloadIdentifier Strings.
-
getAllDownloads
Description copied from interface:DownloadManagerServiceMBeanFunction to get all downloads for a specific user.- Specified by:
getAllDownloadsin interfaceDownloadManagerServiceMBean- Parameters:
userId- The id of the user.- Returns:
- Returns an array of downloadIdentifier Strings, similar to
DownloadManagerServiceMBean.getAllDownloads().
-
removeDownloadInfo
Description copied from interface:DownloadManagerServiceMBeanFunction to remove the map entry corresponding to the downloadIdentifier passed it. This means it will no longer be returned byDownloadManagerServiceMBean.getAllDownloadsStatus(),DownloadManagerServiceMBean.getAllDownloadsStatus(), {DownloadManagerServiceMBean.getAllDownloads(), orDownloadManagerServiceMBean.getAllDownloads(String).- Specified by:
removeDownloadInfoin interfaceDownloadManagerServiceMBean- Parameters:
downloadIdentifier- The randomly generated downloadId string assigned to the download at its start.
-
cancelDownload
Description copied from interface:DownloadManagerServiceMBeanFunction to cancel a download.- Specified by:
cancelDownloadin interfaceDownloadManagerServiceMBean- Parameters:
userId- The id of the user who is performing the download.downloadIdentifier- The randomly generated downloadId string assigned to the download at its start.
-