Class DownloadService
- java.lang.Object
-
- com.microsoftopentechnologies.windowsazurestorage.service.StoragePluginService<DownloadServiceData>
-
- com.microsoftopentechnologies.windowsazurestorage.service.DownloadService
-
- Direct Known Subclasses:
DownloadFromBuildService
,DownloadFromContainerService
,DownloadFromFileService
public abstract class DownloadService extends StoragePluginService<DownloadServiceData>
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DOWNLOAD
protected static String
DOWNLOAD_FAILED
-
Fields inherited from class com.microsoftopentechnologies.windowsazurestorage.service.StoragePluginService
FP_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description DownloadService(DownloadServiceData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
downloadBlob(com.azure.storage.blob.specialized.BlobClientBase blob)
protected void
downloadSingleFile(com.azure.storage.file.share.ShareFileClient cloudFile)
ExecutorService
getExecutorService()
int
getFilesDownloaded()
protected boolean
shouldDownload(String includePattern, String excludePattern, String blobName, boolean isFullPath)
protected void
waitForDownloadEnd()
-
Methods inherited from class com.microsoftopentechnologies.windowsazurestorage.service.StoragePluginService
error, execute, getServiceData, getTime, println, setRunUnstable, setServiceData
-
-
-
-
Field Detail
-
DOWNLOAD
protected static final String DOWNLOAD
- See Also:
- Constant Field Values
-
DOWNLOAD_FAILED
protected static final String DOWNLOAD_FAILED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DownloadService
public DownloadService(DownloadServiceData data)
-
-
Method Detail
-
waitForDownloadEnd
protected void waitForDownloadEnd() throws WAStorageException
- Throws:
WAStorageException
-
downloadSingleFile
protected void downloadSingleFile(com.azure.storage.file.share.ShareFileClient cloudFile) throws WAStorageException
- Throws:
WAStorageException
-
downloadBlob
protected void downloadBlob(com.azure.storage.blob.specialized.BlobClientBase blob) throws WAStorageException
- Throws:
WAStorageException
-
shouldDownload
protected boolean shouldDownload(String includePattern, String excludePattern, String blobName, boolean isFullPath)
-
getFilesDownloaded
public int getFilesDownloaded()
-
getExecutorService
public ExecutorService getExecutorService()
-
-