Class BackendApiImpl

    • 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
      • logError

        protected void logError​(org.slf4j.Logger log,
                                java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log an error message including the Component ID.
        Overrides:
        logError 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()
      • execute

        protected void execute​(java.lang.Runnable command)
        Execute a command using the ScheduledExecutorService.
        Parameters:
        command - a Runnable
      • scheduleWithFixedDelay

        public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay​(java.lang.Runnable command,
                                                                              long initialDelay,
                                                                              long delay,
                                                                              java.util.concurrent.TimeUnit unit)
        Schedules a command using the ScheduledExecutorService.
        Parameters:
        command - a Runnable
        initialDelay - the initial delay
        delay - the delay
        unit - the TimeUnit
        Returns:
        a ScheduledFuture, or null if Executor is shutting down