Package com.tccc.kos.core.service.log
Class LogServer
java.lang.Object
com.tccc.kos.commons.util.ready.ReadyBean
com.tccc.kos.commons.core.service.AbstractService
com.tccc.kos.core.service.log.LogServer
- All Implemented Interfaces:
CtxEventListener
,ContextHandleAware
,HandleAware
,Ready
,ReadyAndReadyListener
,ReadyListener
,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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
active
(LogExporter exporter) Called to indicate that an exporter is now active.void
onInvalidAddr
(String addr) Called when a websocket address is no longer reachable.void
rotateStream
(String name) Rotate the specified log stream on all nodes.void
Rotate all log streams on all nodes.Methods inherited from class com.tccc.kos.commons.core.service.AbstractService
getHandle, getHandlePrefix
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompleted
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
Methods inherited from interface com.tccc.kos.commons.util.ready.ReadyAndReadyListener
onBeanReady, onDependenciesReady
Methods inherited from interface com.tccc.kos.commons.util.ready.ReadyListener
onDependenciesGroupReady
-
Field Details
-
TOPIC_OVERRIDE_ADD
- See Also:
-
TOPIC_OVERRIDE_REMOVE
- See Also:
-
-
Method Details
-
active
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
Rotate the specified log stream on all nodes. -
rotateStreams
public void rotateStreams()Rotate all log streams on all nodes. -
onInvalidAddr
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 interfaceInvalidWebsocketAddrListener
- Parameters:
addr
- the address that is no longer valid
-
getBroker
-