Class AasDeviceFirmwareOperations

java.lang.Object
de.iip_ecosphere.platform.deviceMgt.AasDeviceFirmwareOperations
All Implemented Interfaces:
DeviceFirmwareOperations

public class AasDeviceFirmwareOperations extends Object implements DeviceFirmwareOperations
A service provider implementation for DeviceFirmwareOperations which uses aas as the communication protocol. For this purpose it will notify the DeviceManagementAas that a device needs an update.
Author:
Dennis Pidun, University of Hildesheim
  • Constructor Details

    • AasDeviceFirmwareOperations

      public AasDeviceFirmwareOperations()
  • Method Details

    • updateRuntime

      public void updateRuntime(String id) throws ExecutionException
      Description copied from interface: DeviceFirmwareOperations
      Update the runtime of the given device with the id.
      Specified by:
      updateRuntime in interface DeviceFirmwareOperations
      Parameters:
      id - the id of the device
      Throws:
      ExecutionException - if the execution of this operation fails
    • getHighestVersion

      private Integer getHighestVersion(Storage storage, String runtimeName)
      Returns the highest version available in storage.
      Parameters:
      storage - the storage
      runtimeName - the runtime name
      Returns:
      the highest version, -1 for none