Class ProgressBar

java.lang.Object
cloud.kitelang.cli.util.ProgressBar
All Implemented Interfaces:
cloud.kitelang.engine.distribution.DownloadProgress

public class ProgressBar extends Object implements cloud.kitelang.engine.distribution.DownloadProgress
Simple console progress bar for downloads.
  • Field Summary

    Fields inherited from interface cloud.kitelang.engine.distribution.DownloadProgress

    NOOP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the progress bar line.
    void
    complete(String message)
    Complete the progress bar with a final message.
    void
    onProgress(long bytesRead, long totalBytes, int percentComplete)
     

    Methods inherited from class Object

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

    • ProgressBar

      public ProgressBar(String prefix)
  • Method Details

    • onProgress

      public void onProgress(long bytesRead, long totalBytes, int percentComplete)
      Specified by:
      onProgress in interface cloud.kitelang.engine.distribution.DownloadProgress
    • clear

      public void clear()
      Clear the progress bar line.
    • complete

      public void complete(String message)
      Complete the progress bar with a final message.