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 Summary
Constructors Constructor Description UpdateHandlerEventRelay() -
Method Summary
Modifier and Type Method Description static voidaddListener(org.update4j.service.UpdateHandler listener)voiddoneCheckUpdateFile(org.update4j.FileMetadata file, boolean requires)voiddoneCheckUpdates()voiddoneDownloadFile(org.update4j.FileMetadata file, java.nio.file.Path tempFile)voiddoneDownloads()voidfailed(java.lang.Throwable t)voidinit(org.update4j.UpdateContext context)voidstartCheckUpdateFile(org.update4j.FileMetadata file)voidstartCheckUpdates()voidstartDownloadFile(org.update4j.FileMetadata file)voidstartDownloads()voidstop()voidsucceeded()voidupdateCheckUpdatesProgress(float frac)voidupdateDownloadFileProgress(org.update4j.FileMetadata file, float frac)voidupdateDownloadProgress(float frac)voidvalidatingFile(org.update4j.FileMetadata file, java.nio.file.Path tempFile)longversion()
-
Constructor Details
-
UpdateHandlerEventRelay
public UpdateHandlerEventRelay()
-
-
Method Details
-
init
public void init(org.update4j.UpdateContext context) throws java.lang.Throwable- Specified by:
initin interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
startCheckUpdates
public void startCheckUpdates() throws java.lang.Throwable- Specified by:
startCheckUpdatesin interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
startCheckUpdateFile
public void startCheckUpdateFile(org.update4j.FileMetadata file) throws java.lang.Throwable- Specified by:
startCheckUpdateFilein interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
doneCheckUpdateFile
public void doneCheckUpdateFile(org.update4j.FileMetadata file, boolean requires) throws java.lang.Throwable- Specified by:
doneCheckUpdateFilein interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
updateCheckUpdatesProgress
public void updateCheckUpdatesProgress(float frac) throws java.lang.Throwable- Specified by:
updateCheckUpdatesProgressin interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
doneCheckUpdates
public void doneCheckUpdates() throws java.lang.Throwable- Specified by:
doneCheckUpdatesin interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
startDownloads
public void startDownloads() throws java.lang.Throwable- Specified by:
startDownloadsin interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
startDownloadFile
public void startDownloadFile(org.update4j.FileMetadata file) throws java.lang.Throwable- Specified by:
startDownloadFilein interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
updateDownloadFileProgress
public void updateDownloadFileProgress(org.update4j.FileMetadata file, float frac) throws java.lang.Throwable- Specified by:
updateDownloadFileProgressin interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
updateDownloadProgress
public void updateDownloadProgress(float frac) throws java.lang.Throwable- Specified by:
updateDownloadProgressin interfaceorg.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:
validatingFilein interfaceorg.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:
doneDownloadFilein interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
doneDownloads
public void doneDownloads() throws java.lang.Throwable- Specified by:
doneDownloadsin interfaceorg.update4j.service.UpdateHandler- Throws:
java.lang.Throwable
-
failed
public void failed(java.lang.Throwable t)- Specified by:
failedin interfaceorg.update4j.service.UpdateHandler
-
succeeded
public void succeeded()- Specified by:
succeededin interfaceorg.update4j.service.UpdateHandler
-
stop
public void stop()- Specified by:
stopin interfaceorg.update4j.service.UpdateHandler
-
version
public long version()- Specified by:
versionin interfaceorg.update4j.service.Service
-
addListener
public static void addListener(org.update4j.service.UpdateHandler listener)
-