Class TimescaledbWriteHandler

java.lang.Object
io.openems.backend.timedata.timescaledb.internal.write.TimescaledbWriteHandler

public class TimescaledbWriteHandler extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • deactivate

      public void deactivate()
      Called by TimescaledbImpl deactivate().
    • write

      public void write(String edgeId, com.google.common.collect.TreeBasedTable<Long,String,com.google.gson.JsonElement> data)
      See
      invalid reference
      Timedata#write(String, TreeBasedTable)
      .
      Parameters:
      edgeId - The unique Edge-ID
      data - Table of timestamp (epoch in milliseconds), Channel-Address and the Channel value as JsonElement. Sorted by timestamp.
      Throws:
      OpenemsException - on error
    • debugLog

      public StringBuilder debugLog()
      Returns a DebugLog String.
      Returns:
      debug log
    • debugMetrics

      public Map<String,Long> debugMetrics()
      Returns a DebugMetrics map.
      Returns:
      metrics