Class AbstractOpenemsBackendComponent

java.lang.Object
io.openems.backend.common.component.AbstractOpenemsBackendComponent
Direct Known Subclasses:
AbstractMetadata, AggregatedInflux, Alerting, Backend2BackendRest, Backend2BackendWebsocket, CoreJsonRpcRequestHandlerImpl, EdgeWebsocketImpl, TimedataDummy, TimedataInfluxDb, TimedataManagerImpl, TimedataTimescaleDb, UiWebsocketImpl

public class AbstractOpenemsBackendComponent extends Object
  • Constructor Details

    • AbstractOpenemsBackendComponent

      public AbstractOpenemsBackendComponent(String name)
      Initializes the AbstractOpenemsBackendComponent.
      Parameters:
      name - a descriptive name for this component. Available via getName()
  • Method Details

    • getName

      public String getName()
      A descriptive name for this component.
      Returns:
      the name
    • logInfo

      public static void logInfo(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message)
      Log a info message including the Component ID.
      Parameters:
      component - the AbstractOpenemsBackendComponent
      log - the Logger instance
      message - the message
    • logInfo

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

      public static void logWarn(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message)
      Log a warn message including the Component ID.
      Parameters:
      component - the AbstractOpenemsBackendComponent
      log - the Logger instance
      message - the message
    • logWarn

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

      public static void logError(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message)
      Log a error message including the Component ID.
      Parameters:
      component - the AbstractOpenemsBackendComponent
      log - the Logger instance
      message - the message
    • logError

      protected void logError(org.slf4j.Logger log, String message)
      Log an error message including the Component ID.
      Parameters:
      log - the Logger that is used for writing the log
      message - the Error-message
    • logDebug

      public static void logDebug(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message)
      Log a debug message including the Component ID.
      Parameters:
      component - the AbstractOpenemsBackendComponent
      log - the Logger instance
      message - the message
    • logDebug

      protected void logDebug(org.slf4j.Logger log, String message)
      Log a debug message including the Component ID.
      Parameters:
      log - the Logger that is used for writing the log
      message - the Debug-message