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 Details

  • Constructor Details

    • Backend2BackendWebsocket

      public Backend2BackendWebsocket()
  • Method Details

    • logInfo

      protected void logInfo(org.slf4j.Logger log, String message)
      Description copied from class: AbstractOpenemsBackendComponent
      Log an info message including the Component ID.
      Overrides:
      logInfo in class AbstractOpenemsBackendComponent
      Parameters:
      log - the Logger that is used for writing the log
      message - the Info-message
    • logWarn

      protected void logWarn(org.slf4j.Logger log, String message)
      Description copied from class: AbstractOpenemsBackendComponent
      Log a warn message including the Component ID.
      Overrides:
      logWarn in class AbstractOpenemsBackendComponent
      Parameters:
      log - the Logger that is used for writing the log
      message - the Warn-message
    • logError

      protected void logError(org.slf4j.Logger log, String message)
      Description copied from class: AbstractOpenemsBackendComponent
      Log an error message including the Component ID.
      Overrides:
      logError in class AbstractOpenemsBackendComponent
      Parameters:
      log - the Logger that is used for writing the log
      message - the Error-message
    • handleEvent

      public void handleEvent(org.osgi.service.event.Event event)
      Specified by:
      handleEvent in interface org.osgi.service.event.EventHandler
    • getId

      public String getId()
    • debugLog

      public String debugLog()
      Description copied from interface: DebugLoggable
      Gets some output that is suitable for a continuous Debug log.
      Specified by:
      debugLog in interface DebugLoggable
      Returns:
      the debug log output; null for no log
    • debugMetrics

      public Map<String,com.google.gson.JsonElement> debugMetrics()
      Description copied from interface: DebugLoggable
      Gets some output that is suitable for a debug metrics to write down as Timedata.
      Specified by:
      debugMetrics in interface DebugLoggable
      Returns:
      the key value entries to write down; null or emptyMap for no metrics