public class DownloadServiceFeeder extends Object
| Constructor and Description |
|---|
DownloadServiceFeeder() |
| Modifier and Type | Method and Description |
|---|---|
DownloadReportMap |
download(String epr,
String plugin,
String objectStoreID,
String protocol,
String mimeType,
int numberOfThreads,
String basePath,
List<String> regularExpression,
int connectTimeoutMs,
int readTimeoutMs,
int sleepTimeMs)
Download and feed file into the objectStore .
|
static void |
reportException(DownloadReportMap report,
eu.dnetlib.data.download.rmi.DownloadItem di,
Throwable e) |
public static void reportException(DownloadReportMap report, eu.dnetlib.data.download.rmi.DownloadItem di, Throwable e)
public DownloadReportMap download(String epr, String plugin, String objectStoreID, String protocol, String mimeType, int numberOfThreads, String basePath, List<String> regularExpression, int connectTimeoutMs, int readTimeoutMs, int sleepTimeMs) throws eu.dnetlib.data.download.rmi.DownloadServiceException, eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
epr - the end-point reference of the result-set of Serialized DownloadItemplugin - the plugin used to retrieve the correct URLobjectStoreID - the object store id to store the dataprotocol - the protocol used to download the filemimeType - the mime type of the FilesnumberOfThreads - the number of threads to use for download at the same timeDownloadServiceException - the download service exceptioneu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionCopyright © 2019. All rights reserved.