Interface FirmwareUpdateBackgroundTransferHandler
- All Superinterfaces:
FirmwareUpdateHandler
@NonNullByDefault
public interface FirmwareUpdateBackgroundTransferHandler
extends FirmwareUpdateHandler
The
FirmwareUpdateBackgroundTransferHandler
is an extension of the FirmwareUpdateHandler
and is to be
used if the firmware of the thing must be transferred to the actual device in the background. So the
FirmwareUpdateService
checks if there is a newer firmware available and handles the firmware status of the
thing as FirmwareStatus.UPDATE_AVAILABLE
in case of the handler returns false for
FirmwareUpdateHandler.isUpdateExecutable()
. Finally it invokes the
transferFirmware(Firmware)
operation for this scenario.- Author:
- Thomas Höfer - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoid
transferFirmware
(Firmware firmware) Transfers the firmware of the thing to its actual device in the background.Methods inherited from interface org.openhab.core.thing.binding.firmware.FirmwareUpdateHandler
cancel, getThing, isUpdateExecutable, updateFirmware
-
Method Details
-
transferFirmware
Transfers the firmware of the thing to its actual device in the background. After the successful transfer of the firmware the operationFirmwareUpdateHandler.isUpdateExecutable()
should return true.- Parameters:
firmware
- the firmware to be transferred in the background (not null)
-