Class ResendHistoricDataWorker

java.lang.Object
io.openems.common.worker.AbstractWorker
io.openems.edge.controller.api.backend.ResendHistoricDataWorker

public final class ResendHistoricDataWorker extends AbstractWorker
  • Field Details

  • Constructor Details

    • ResendHistoricDataWorker

      public ResendHistoricDataWorker()
  • Method Details

    • deactivate

      public void deactivate()
      Description copied from class: AbstractWorker
      Stops the worker thread.
      Overrides:
      deactivate in class AbstractWorker
    • forever

      protected void forever() throws Throwable
      Description copied from class: AbstractWorker
      This method is called in a loop forever until the Thread gets interrupted.
      Specified by:
      forever in class AbstractWorker
      Throws:
      Throwable
    • bindTimedata

      protected void bindTimedata(Timedata timedata)
    • unbindTimedata

      protected void unbindTimedata(Timedata timedata)
    • getCycleTime

      protected int getCycleTime()
      Description copied from class: AbstractWorker
      Gets the cycleTime of this worker in [ms].
      • > 0 sets the minimum execution time of one Cycle
      • = 0 never wait between two consecutive executions of forever()
      • < 0 causes the Cycle to sleep forever until 'triggerNextRun()' is called
      Specified by:
      getCycleTime in class AbstractWorker
      Returns:
      the cycleTime
    • triggerNextRun

      public void triggerNextRun()
      Description copied from class: AbstractWorker
      Allows the next execution of the forever() method.
      Overrides:
      triggerNextRun in class AbstractWorker
    • setConfig

      public void setConfig(ResendHistoricDataWorker.Config config)
    • mapResendData

      protected static com.google.common.collect.TreeBasedTable<Long,String,com.google.gson.JsonElement> mapResendData(SortedMap<Long,SortedMap<ChannelAddress,com.google.gson.JsonElement>> resendData)