Class UpdatePrinter

java.lang.Object
net.christophermerrill.update4j.multichannel.core.UpdatePrinter
All Implemented Interfaces:
org.update4j.inject.Injectable, org.update4j.service.Service, org.update4j.service.UpdateHandler

public class UpdatePrinter
extends java.lang.Object
implements org.update4j.service.UpdateHandler
  • Field Details

    • PRINTER

      public static java.io.PrintStream PRINTER
  • Constructor Details

  • Method Details

    • init

      public void init​(org.update4j.UpdateContext context)
      Specified by:
      init in interface org.update4j.service.UpdateHandler
    • startCheckUpdates

      public void startCheckUpdates()
      Specified by:
      startCheckUpdates in interface org.update4j.service.UpdateHandler
    • startCheckUpdateFile

      public void startCheckUpdateFile​(org.update4j.FileMetadata file)
      Specified by:
      startCheckUpdateFile in interface org.update4j.service.UpdateHandler
    • doneCheckUpdateFile

      public void doneCheckUpdateFile​(org.update4j.FileMetadata file, boolean requires)
      Specified by:
      doneCheckUpdateFile in interface org.update4j.service.UpdateHandler
    • updateCheckUpdatesProgress

      public void updateCheckUpdatesProgress​(float frac)
      Specified by:
      updateCheckUpdatesProgress in interface org.update4j.service.UpdateHandler
    • doneCheckUpdates

      public void doneCheckUpdates()
      Specified by:
      doneCheckUpdates in interface org.update4j.service.UpdateHandler
    • startDownloads

      public void startDownloads()
      Specified by:
      startDownloads in interface org.update4j.service.UpdateHandler
    • startDownloadFile

      public void startDownloadFile​(org.update4j.FileMetadata file)
      Specified by:
      startDownloadFile in interface org.update4j.service.UpdateHandler
    • updateDownloadFileProgress

      public void updateDownloadFileProgress​(org.update4j.FileMetadata file, float frac)
      Specified by:
      updateDownloadFileProgress in interface org.update4j.service.UpdateHandler
    • updateDownloadProgress

      public void updateDownloadProgress​(float frac)
      Specified by:
      updateDownloadProgress in interface org.update4j.service.UpdateHandler
    • validatingFile

      public void validatingFile​(org.update4j.FileMetadata file, java.nio.file.Path tempFile)
      Specified by:
      validatingFile in interface org.update4j.service.UpdateHandler
    • doneDownloadFile

      public void doneDownloadFile​(org.update4j.FileMetadata file, java.nio.file.Path tempFile)
      Specified by:
      doneDownloadFile in interface org.update4j.service.UpdateHandler
    • doneDownloads

      public void doneDownloads()
      Specified by:
      doneDownloads in interface org.update4j.service.UpdateHandler
    • failed

      public void failed​(java.lang.Throwable t)
      Specified by:
      failed in interface org.update4j.service.UpdateHandler
    • succeeded

      public void succeeded()
      Specified by:
      succeeded in interface org.update4j.service.UpdateHandler
    • stop

      public void stop()
      Specified by:
      stop in interface org.update4j.service.UpdateHandler
    • version

      public long version()
      Specified by:
      version in interface org.update4j.service.Service