Package jetbrains.buildServer.artifacts
Class FileProgress.Adapter
- java.lang.Object
-
- jetbrains.buildServer.artifacts.FileProgress.Adapter
-
- All Implemented Interfaces:
FileProgress
- Enclosing interface:
- FileProgress
public static class FileProgress.Adapter extends Object implements FileProgress
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.artifacts.FileProgress
FileProgress.Adapter
-
-
Constructor Summary
Constructors Constructor Description Adapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcantDownloadFile()Notifies progress that current retriever can't download this filevoiderrorOccurred(Throwable e)Notifies progress that an error occurred during downloadvoidfileDownloaded()Notifies progress that this file is downloadedlonggetExpectedLength()longgetTransferred()booleanisFinished()voidsetExpectedLength(long expectedLength)Sets expected total sizevoidtransferred(long count)Increases total downloaded size by count
-
-
-
Method Detail
-
transferred
public void transferred(long count)
Description copied from interface:FileProgressIncreases total downloaded size by count- Specified by:
transferredin interfaceFileProgress- Parameters:
count- downloaded bytes
-
setExpectedLength
public void setExpectedLength(long expectedLength)
Description copied from interface:FileProgressSets expected total size- Specified by:
setExpectedLengthin interfaceFileProgress- Parameters:
expectedLength- - expected length of the file
-
getTransferred
public long getTransferred()
- Specified by:
getTransferredin interfaceFileProgress- Returns:
- downloaded bytes (if tracked by retriever)
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceFileProgress
-
getExpectedLength
public long getExpectedLength()
- Specified by:
getExpectedLengthin interfaceFileProgress- Returns:
- total expected size
-
cantDownloadFile
public void cantDownloadFile()
Description copied from interface:FileProgressNotifies progress that current retriever can't download this file- Specified by:
cantDownloadFilein interfaceFileProgress
-
fileDownloaded
public void fileDownloaded()
Description copied from interface:FileProgressNotifies progress that this file is downloaded- Specified by:
fileDownloadedin interfaceFileProgress
-
errorOccurred
public void errorOccurred(Throwable e)
Description copied from interface:FileProgressNotifies progress that an error occurred during download- Specified by:
errorOccurredin interfaceFileProgress- Parameters:
e- - an error occurred during download
-
-