Class PostgresHandler
java.lang.Object
io.openems.backend.metadata.odoo.postgres.PostgresHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPostgresHandler
(OdooMetadata parent, EdgeCache edgeCache, Config config, Runnable onInitialized) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deactivates thePostgresHandler
.protected Connection
getEdgeForApikey
(String apikey) Gets the Edge for an API-Key, i.e.protected void
protected void
protected void
-
Field Details
-
edge
-
edgeCache
-
-
Constructor Details
-
PostgresHandler
public PostgresHandler(OdooMetadata parent, EdgeCache edgeCache, Config config, Runnable onInitialized) throws SQLException - Throws:
SQLException
-
-
Method Details
-
deactivate
public void deactivate()Deactivates thePostgresHandler
. -
getEdgeForApikey
Gets the Edge for an API-Key, i.e. authenticates the API-Key.- Parameters:
apikey
- the API-Key- Returns:
- the Edge or Empty
-
getPeriodicWriteWorker
-
getConnection
- Throws:
SQLException
-
logInfo
-
logWarn
-
logError
-