Class LoggingProgressReport

java.lang.Object
com.googlecode.download.maven.plugin.internal.LoggingProgressReport
All Implemented Interfaces:
ProgressReport

public final class LoggingProgressReport extends Object implements ProgressReport
ProgressReport implementation that logs operation progress at INFO priority.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoggingProgressReport(org.apache.maven.plugin.logging.Log log, File outputFile)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Triggered to signal completion of the download operation.
    void
    Triggered to signal an error occurred during the download operation.
    void
    initiate(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoggingProgressReport

      public LoggingProgressReport(org.apache.maven.plugin.logging.Log log, File outputFile)
  • Method Details

    • initiate

      public void initiate(URI uri, long total)
      Description copied from interface: ProgressReport
      Triggered to signal initiation of a download operation.
      Specified by:
      initiate in interface ProgressReport
      Parameters:
      uri - the URI of the resource being downloaded
      total - the total length of resource content.
    • update

      public void update(long bytesRead)
      Description copied from interface: ProgressReport
      Triggered to signal successful retrieval of a chunk of the resource content.
      Specified by:
      update in interface ProgressReport
      Parameters:
      bytesRead - the number of bytes retrieved.
    • completed

      public void completed()
      Description copied from interface: ProgressReport
      Triggered to signal completion of the download operation.
      Specified by:
      completed in interface ProgressReport
    • error

      public void error(Exception ex)
      Description copied from interface: ProgressReport
      Triggered to signal an error occurred during the download operation.
      Specified by:
      error in interface ProgressReport