Package jetbrains.buildServer.artifacts
Interface FileProgress
-
- All Known Implementing Classes:
FileProgress.Adapter
public interface FileProgress
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FileProgress.Adapter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cantDownloadFile()
Notifies progress that current retriever can't download this filevoid
errorOccurred(Throwable e)
Notifies progress that an error occurred during downloadvoid
fileDownloaded()
Notifies progress that this file is downloadedlong
getExpectedLength()
long
getTransferred()
boolean
isFinished()
void
setExpectedLength(long expectedLength)
Sets expected total sizevoid
transferred(long count)
Increases total downloaded size by count
-
-
-
Method Detail
-
transferred
void transferred(long count)
Increases total downloaded size by count- Parameters:
count
- downloaded bytes
-
setExpectedLength
void setExpectedLength(long expectedLength)
Sets expected total size- Parameters:
expectedLength
- - expected length of the file
-
getTransferred
long getTransferred()
- Returns:
- downloaded bytes (if tracked by retriever)
-
isFinished
boolean isFinished()
-
getExpectedLength
long getExpectedLength()
- Returns:
- total expected size
-
cantDownloadFile
void cantDownloadFile()
Notifies progress that current retriever can't download this file
-
fileDownloaded
void fileDownloaded()
Notifies progress that this file is downloaded
-
errorOccurred
void errorOccurred(Throwable e)
Notifies progress that an error occurred during download- Parameters:
e
- - an error occurred during download
-
-