Class DefaultProgress

java.lang.Object
org.codehaus.plexus.build.progress.DefaultProgress
All Implemented Interfaces:
Progress

@Named("default") @Singleton public class DefaultProgress extends Object implements Progress
The default implementation simply log to debug and check for thread interruption
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultProgress(org.apache.maven.plugin.MojoExecution execution)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method should be used to check if the user has requested to finish the current work and break out early.
    void
    setRemaining(int work)
    Notifies the remaining amount of work that will be reported
    void
    startTask(String task, int work)
    Reports that the mojo has started the given task with the given amount of work.
    void
    worked(int work)
    Reports a given amount of work was processed

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Progress

    worked
  • Constructor Details

    • DefaultProgress

      @Inject public DefaultProgress(org.apache.maven.plugin.MojoExecution execution)
  • Method Details

    • startTask

      public void startTask(String task, int work)
      Description copied from interface: Progress
      Reports that the mojo has started the given task with the given amount of work.
      Specified by:
      startTask in interface Progress
      Parameters:
      task -
      work - the amount of work that the mojo plan to report, if a value <= 0 is given the amount of work is assumed to be unknown.
    • worked

      public void worked(int work)
      Description copied from interface: Progress
      Reports a given amount of work was processed
      Specified by:
      worked in interface Progress
      Parameters:
      work -
    • setRemaining

      public void setRemaining(int work)
      Description copied from interface: Progress
      Notifies the remaining amount of work that will be reported
      Specified by:
      setRemaining in interface Progress
      Parameters:
      work -
    • isCancelRequested

      public boolean isCancelRequested()
      Description copied from interface: Progress
      This method should be used to check if the user has requested to finish the current work and break out early.
      Specified by:
      isCancelRequested in interface Progress
      Returns:
      true if a cancel request is currently pending.