Class SilentProgressReport
- java.lang.Object
-
- com.googlecode.download.maven.plugin.internal.SilentProgressReport
-
- All Implemented Interfaces:
ProgressReport
public final class SilentProgressReport extends Object implements ProgressReport
Silent (no-op) implementation ofProgressReport. Only errors will get logged at ERROR priority.
-
-
Constructor Summary
Constructors Constructor Description SilentProgressReport(org.apache.maven.plugin.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleted()Triggered to signal completion of the download operation.voiderror(Exception ex)Triggered to signal an error occurred during the download operation.voidinitiate(URI uri, long total)Triggered to signal initiation of a download operation.voidupdate(long bytesRead)Triggered to signal successful retrieval of a chunk of the resource content.
-
-
-
Method Detail
-
initiate
public void initiate(URI uri, long total)
Description copied from interface:ProgressReportTriggered to signal initiation of a download operation.- Specified by:
initiatein interfaceProgressReport- Parameters:
uri- the URI of the resource being downloadedtotal- the total length of resource content.
-
update
public void update(long bytesRead)
Description copied from interface:ProgressReportTriggered to signal successful retrieval of a chunk of the resource content.- Specified by:
updatein interfaceProgressReport- Parameters:
bytesRead- the number of bytes retrieved.
-
completed
public void completed()
Description copied from interface:ProgressReportTriggered to signal completion of the download operation.- Specified by:
completedin interfaceProgressReport
-
error
public void error(Exception ex)
Description copied from interface:ProgressReportTriggered to signal an error occurred during the download operation.- Specified by:
errorin interfaceProgressReport
-
-