public final class LoggingProgressReport extends java.lang.Object implements ProgressReport
ProgressReport implementation that logs operation progress at INFO priority.| Constructor and Description |
|---|
LoggingProgressReport(org.apache.maven.plugin.logging.Log log) |
| Modifier and Type | Method and Description |
|---|---|
void |
completed()
Triggered to signal completion of the download operation.
|
void |
error(java.lang.Exception ex)
Triggered to signal an error occurred during the download operation.
|
void |
initiate(java.net.URI uri,
long total)
Triggered to signal initiation of a download operation.
|
void |
update(long bytesRead)
Triggered to signal successful retrieval of a chunk
of the resource content.
|
public LoggingProgressReport(org.apache.maven.plugin.logging.Log log)
public void initiate(java.net.URI uri,
long total)
ProgressReportinitiate in interface ProgressReporturi - the URI of the resource being downloadedtotal - the total length of resource content.public void update(long bytesRead)
ProgressReportupdate in interface ProgressReportbytesRead - the number of bytes retrieved.public void completed()
ProgressReportcompleted in interface ProgressReportpublic void error(java.lang.Exception ex)
ProgressReporterror in interface ProgressReportCopyright © 2009-2023 Open-Source. All Rights Reserved.