Class PostgresHandler

java.lang.Object
io.openems.backend.metadata.odoo.postgres.PostgresHandler

public class PostgresHandler extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • deactivate

      public void deactivate()
      Deactivates the PostgresHandler.
    • getEdgeForApikey

      public Optional<MyEdge> getEdgeForApikey(String apikey)
      Gets the Edge for an API-Key, i.e. authenticates the API-Key.
      Parameters:
      apikey - the API-Key
      Returns:
      the Edge or Empty
    • getPeriodicWriteWorker

      public PeriodicWriteWorker getPeriodicWriteWorker()
    • getConnection

      protected Connection getConnection() throws SQLException
      Throws:
      SQLException
    • logInfo

      protected void logInfo(org.slf4j.Logger log, String message)
    • logWarn

      protected void logWarn(org.slf4j.Logger log, String message)
    • logError

      protected void logError(org.slf4j.Logger log, String message)