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 java.lang.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 void
cantDownloadFile()
Notifies progress that current retriever can't download this filevoid
errorOccurred(java.lang.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
public void transferred(long count)
Description copied from interface:FileProgress
Increases total downloaded size by count- Specified by:
transferred
in interfaceFileProgress
- Parameters:
count
- downloaded bytes
-
setExpectedLength
public void setExpectedLength(long expectedLength)
Description copied from interface:FileProgress
Sets expected total size- Specified by:
setExpectedLength
in interfaceFileProgress
- Parameters:
expectedLength
- - expected length of the file
-
getTransferred
public long getTransferred()
- Specified by:
getTransferred
in interfaceFileProgress
- Returns:
- downloaded bytes (if tracked by retriever)
-
isFinished
public boolean isFinished()
- Specified by:
isFinished
in interfaceFileProgress
-
getExpectedLength
public long getExpectedLength()
- Specified by:
getExpectedLength
in interfaceFileProgress
- Returns:
- total expected size
-
cantDownloadFile
public void cantDownloadFile()
Description copied from interface:FileProgress
Notifies progress that current retriever can't download this file- Specified by:
cantDownloadFile
in interfaceFileProgress
-
fileDownloaded
public void fileDownloaded()
Description copied from interface:FileProgress
Notifies progress that this file is downloaded- Specified by:
fileDownloaded
in interfaceFileProgress
-
errorOccurred
public void errorOccurred(java.lang.Throwable e)
Description copied from interface:FileProgress
Notifies progress that an error occurred during download- Specified by:
errorOccurred
in interfaceFileProgress
- Parameters:
e
- - an error occurred during download
-
-