Class LoggingProgressReport
java.lang.Object
com.googlecode.download.maven.plugin.internal.LoggingProgressReport
- All Implemented Interfaces:
ProgressReport
ProgressReport implementation that logs operation progress at INFO priority.-
Constructor Summary
ConstructorsConstructorDescriptionLoggingProgressReport(org.apache.maven.plugin.logging.Log log, File outputFile) -
Method Summary
Modifier and TypeMethodDescriptionvoidTriggered to signal completion of the download operation.voidTriggered to signal an error occurred during the download operation.voidTriggered to signal initiation of a download operation.voidupdate(long bytesRead) Triggered to signal successful retrieval of a chunk of the resource content.
-
Constructor Details
-
LoggingProgressReport
-
-
Method Details
-
initiate
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
Description copied from interface:ProgressReportTriggered to signal an error occurred during the download operation.- Specified by:
errorin interfaceProgressReport
-