public class DownloadManager extends Object implements Observer, de.cismet.tools.configuration.Configurable
| Modifier and Type | Method and Description |
|---|---|
void |
add(Download download)
This method is used to add a download to the download list.
|
void |
addDownloadListChangedListener(DownloadListChangedListener listener)
Adds a new DownloadListChangedListener.
|
void |
addDownloadsSubsequently(BackgroundTaskMultipleDownload backgroundTaskMultipleDownload)
Checks if the encapsulated downloads of a BackgroundTaskMultipleDownload have already been added to the
DownloadManager.
|
void |
configure(org.jdom.Element parent) |
org.jdom.Element |
getConfiguration() |
int |
getCountDownloadsCancelled()
DOCUMENT ME!
|
int |
getCountDownloadsCompleted()
Returns the count of completed downloads.
|
int |
getCountDownloadsErroneous()
Returns the count of erroneous downloads.
|
int |
getCountDownloadsTotal()
Returns the total count of downloads.
|
File |
getDestinationDirectory()
Returns the destination directory.
|
Collection<Download> |
getDownloads()
Returns the current download list.
|
int |
getNotificationDisplayTime()
DOCUMENT ME!
|
int |
getParallelDownloads()
DOCUMENT ME!
|
static DownloadManager |
instance()
It's a Singleton.
|
boolean |
isEnabled()
Deprecated.
DOCUMENT ME!
|
void |
masterConfigure(org.jdom.Element parent) |
protected void |
notifyDownloadListChanged(DownloadListChangedEvent event)
Notifies all current DownloadListChangedListeners.
|
void |
removeDownload(Download download)
Remove a specified download from the download list.
|
void |
removeDownloadListChangedListener(DownloadListChangedListener listener)
Removes a DownloadListChangedListener.
|
void |
removeObsoleteDownloads()
Removes obsolete downloads.
|
void |
setDestinationDirectory(File destinationDirectory)
Sets the destination directory for downloads.
|
void |
setNotificationDisplayTime(int notificationDisplayTime)
DOCUMENT ME!
|
void |
setParallelDownloads(int parallelDownloads)
DOCUMENT ME!
|
void |
update(Observable o,
Object arg) |
public static DownloadManager instance()
public void add(Download download)
download - A new download to add.public void addDownloadsSubsequently(BackgroundTaskMultipleDownload backgroundTaskMultipleDownload)
backgroundTaskMultipleDownload - DOCUMENT ME!public void removeObsoleteDownloads()
public void removeDownload(Download download)
download - The download to remove.public Collection<Download> getDownloads()
public int getCountDownloadsErroneous()
public int getCountDownloadsCompleted()
public int getCountDownloadsTotal()
public int getCountDownloadsCancelled()
public int getParallelDownloads()
public void setParallelDownloads(int parallelDownloads)
parallelDownloads - DOCUMENT ME!public int getNotificationDisplayTime()
public void setNotificationDisplayTime(int notificationDisplayTime)
notificationDisplayTime - DOCUMENT ME!public File getDestinationDirectory()
public void setDestinationDirectory(File destinationDirectory)
destinationDirectory - The new destination directory for downloads.public boolean isEnabled()
public void update(Observable o, Object arg)
public void addDownloadListChangedListener(DownloadListChangedListener listener)
listener - The listener to add.public void removeDownloadListChangedListener(DownloadListChangedListener listener)
listener - The listener to remove.protected void notifyDownloadListChanged(DownloadListChangedEvent event)
event - The event to notify about.public void configure(org.jdom.Element parent)
configure in interface de.cismet.tools.configuration.Configurablepublic void masterConfigure(org.jdom.Element parent)
masterConfigure in interface de.cismet.tools.configuration.Configurablepublic org.jdom.Element getConfiguration()
throws de.cismet.tools.configuration.NoWriteError
getConfiguration in interface de.cismet.tools.configuration.Configurablede.cismet.tools.configuration.NoWriteErrorCopyright © 2012–2026 cismet GmbH. All rights reserved.