Class UpdateHandlerEventRelay

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

public class UpdateHandlerEventRelay
extends java.lang.Object
implements org.update4j.service.UpdateHandler
  • Constructor Details

  • Method Details

    • init

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

      public void startCheckUpdates() throws java.lang.Throwable
      Specified by:
      startCheckUpdates in interface org.update4j.service.UpdateHandler
      Throws:
      java.lang.Throwable
    • startCheckUpdateFile

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

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

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

      public void doneCheckUpdates() throws java.lang.Throwable
      Specified by:
      doneCheckUpdates in interface org.update4j.service.UpdateHandler
      Throws:
      java.lang.Throwable
    • startDownloads

      public void startDownloads() throws java.lang.Throwable
      Specified by:
      startDownloads in interface org.update4j.service.UpdateHandler
      Throws:
      java.lang.Throwable
    • startDownloadFile

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

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

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

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

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

      public void doneDownloads() throws java.lang.Throwable
      Specified by:
      doneDownloads in interface org.update4j.service.UpdateHandler
      Throws:
      java.lang.Throwable
    • 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
    • addListener

      public static void addListener​(org.update4j.service.UpdateHandler listener)