Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## es.upm.gib.aewrapper.cache
Class DownloadManager

    java.lang.Object
      es.upm.gib.aewrapper.cache.DownloadManager

    public class DownloadManager

extends java.lang.Object

This class is in charge of downloading experiments from the arrayexpress database. It takes care that no duplicate downloads are carried out, and synchronizes the download requests conveniently.

Constructor Summary
`DownloadManager()`

Method Summary
`static java.lang.String` | `currentlyDownloadingExperiment(java.lang.String expID)`
`static java.util.ArrayList<java.lang.Object>` | `downloadExperiment(java.lang.String expID, jacuzzi.util.notification.ProgressNotification<java.lang.Integer> progressNotification)` Downloads the data of an experiment
`static void` | `waitForExperimentDownload(java.lang.String expID)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DownloadManager

    public DownloadManager()

Method Detail

### downloadExperiment

    public static java.util.ArrayList<java.lang.Object> downloadExperiment(java.lang.String expID,
                                                                           jacuzzi.util.notification.ProgressNotification<java.lang.Integer> progressNotification)
                                                                    throws ExperimentAccessException,
                                                                           org.jdom.JDOMException,
                                                                           LocalConfigException

  Downloads the data of an experiment

  Parameters:
    `expID` - the identifier of the requested experiment
    `progressNotification` - an object for reporting progress of this task
  Returns:
    an ArrayList of two objects: a string containing the path to the downloaded mage-ml file, and an Integer containing the size of the downloaded file
  Throws:
    `ExperimentAccessException` - could not access the requested experiment in the ArrayExpress server
    `org.jdom.JDOMException` - errors in the XML syntax of the configuration file
    `LocalConfigException` - errors in the configuration file

### currentlyDownloadingExperiment

    public static java.lang.String currentlyDownloadingExperiment(java.lang.String expID)

### waitForExperimentDownload

    public static void waitForExperimentDownload(java.lang.String expID)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD