Class LogServer

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyAndReadyListener, ReadyListener, InvalidWebsocketAddrListener

public class LogServer extends AbstractService implements InvalidWebsocketAddrListener
Log server that provides access to log override functionality as well as fetching log data from various nodes in the device as well as log streaming.
Version:
2025-02-13
  • Field Details

  • Method Details

    • active

      public void active(LogExporter exporter)
      Called to indicate that an exporter is now active. This is entirely optional but can be used to avoid waiting for retry timeouts when an exporter becomes active.
    • rotateStream

      public void rotateStream(String name)
      Rotate the specified log stream on all nodes.
    • rotateStreams

      public void rotateStreams()
      Rotate all log streams on all nodes.
    • onInvalidAddr

      public void onInvalidAddr(String addr)
      Description copied from interface: InvalidWebsocketAddrListener
      Called when a websocket address is no longer reachable. This may be a result of a network partition or the device being removed from the network. Any resources associated with this address should be released.
      Specified by:
      onInvalidAddr in interface InvalidWebsocketAddrListener
      Parameters:
      addr - the address that is no longer valid
    • getBroker

      public MessageBroker getBroker()