Class BackendApiImpl

    • Field Detail

      • apiWorker

        protected final ApiWorker apiWorker
      • config

        protected io.openems.edge.controller.api.backend.Config config
      • cycle

        protected Cycle cycle
      • executor

        protected java.util.concurrent.ScheduledExecutorService executor
    • Constructor Detail

      • BackendApiImpl

        public BackendApiImpl()
    • Method Detail

      • logInfo

        protected void logInfo​(org.slf4j.Logger log,
                               java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log an info message including the Component ID.
        Overrides:
        logInfo in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • logWarn

        protected void logWarn​(org.slf4j.Logger log,
                               java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log a warn message including the Component ID.
        Overrides:
        logWarn in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • setSystemLogSubscribed

        protected void setSystemLogSubscribed​(boolean isSystemLogSubscribed)
        Activates/deactivates subscription to System-Log.

        If activated, all System-Log events are sent via SystemLogNotifications.

        Parameters:
        isSystemLogSubscribed - true to activate
      • doAppend

        public void doAppend​(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
        Specified by:
        doAppend in interface org.ops4j.pax.logging.spi.PaxAppender
      • handleEvent

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

        public boolean isConnected()