Class SystemLogHandler
java.lang.Object
io.openems.edge.controller.api.websocket.SystemLogHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handlePaxLoggingEvent
(org.ops4j.pax.logging.spi.PaxLoggingEvent event) Handles a PaxLoggingEvent and sends a SystemLogNotification to all subscribed UI sessions.handleSubscribeSystemLogRequest
(String token, SubscribeSystemLogRequest request) Handles aSubscribeSystemLogRequest
.
-
Constructor Details
-
SystemLogHandler
-
-
Method Details
-
handleSubscribeSystemLogRequest
public CompletableFuture<JsonrpcResponseSuccess> handleSubscribeSystemLogRequest(String token, SubscribeSystemLogRequest request) throws OpenemsError.OpenemsNamedException Handles aSubscribeSystemLogRequest
.- Parameters:
token
- the UI session tokenrequest
- theSubscribeSystemLogRequest
- Returns:
- a reply
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
handlePaxLoggingEvent
public void handlePaxLoggingEvent(org.ops4j.pax.logging.spi.PaxLoggingEvent event) Handles a PaxLoggingEvent and sends a SystemLogNotification to all subscribed UI sessions.- Parameters:
event
- the event
-