Package io.openems.backend.b2bwebsocket
Class Backend2BackendWebsocket
java.lang.Object
io.openems.backend.common.component.AbstractOpenemsBackendComponent
io.openems.backend.b2bwebsocket.Backend2BackendWebsocket
- All Implemented Interfaces:
DebugLoggable
,org.osgi.service.event.EventHandler
public class Backend2BackendWebsocket
extends AbstractOpenemsBackendComponent
implements org.osgi.service.event.EventHandler, DebugLoggable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected EdgeWebsocket
protected final ScheduledExecutorService
protected JsonRpcRequestHandler
protected Metadata
protected TimedataManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondebugLog()
Gets some output that is suitable for a continuous Debug log.Gets some output that is suitable for a debug metrics to write down asTimedata
.getId()
void
handleEvent
(org.osgi.service.event.Event event) protected void
Log an error message including the Component ID.protected void
Log an info message including the Component ID.protected void
Log a warn message including the Component ID.
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
executor
-
jsonRpcRequestHandler
-
metadata
-
timedataManager
-
edgeWebsocket
-
-
Constructor Details
-
Backend2BackendWebsocket
public Backend2BackendWebsocket()
-
-
Method Details
-
logInfo
Description copied from class:AbstractOpenemsBackendComponent
Log an info message including the Component ID.- Overrides:
logInfo
in classAbstractOpenemsBackendComponent
- Parameters:
log
- the Logger that is used for writing the logmessage
- the Info-message
-
logWarn
Description copied from class:AbstractOpenemsBackendComponent
Log a warn message including the Component ID.- Overrides:
logWarn
in classAbstractOpenemsBackendComponent
- Parameters:
log
- the Logger that is used for writing the logmessage
- the Warn-message
-
logError
Description copied from class:AbstractOpenemsBackendComponent
Log an error message including the Component ID.- Overrides:
logError
in classAbstractOpenemsBackendComponent
- Parameters:
log
- the Logger that is used for writing the logmessage
- the Error-message
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event) - Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
-
getId
-
debugLog
Description copied from interface:DebugLoggable
Gets some output that is suitable for a continuous Debug log.- Specified by:
debugLog
in interfaceDebugLoggable
- Returns:
- the debug log output; null for no log
-
debugMetrics
Description copied from interface:DebugLoggable
Gets some output that is suitable for a debug metrics to write down asTimedata
.- Specified by:
debugMetrics
in interfaceDebugLoggable
- Returns:
- the key value entries to write down; null or emptyMap for no metrics
-